Merge pull request #351 from edx/ned/make-tests-quieter
Provide a null log function for OpenID to keep it from spewing during tests
This commit is contained in:
@@ -195,3 +195,11 @@ PASSWORD_HASHERS = (
|
||||
'django.contrib.auth.hashers.MD5PasswordHasher',
|
||||
# 'django.contrib.auth.hashers.CryptPasswordHasher',
|
||||
)
|
||||
|
||||
################### Make tests quieter
|
||||
|
||||
# OpenID spews messages like this to stderr, we don't need to see them:
|
||||
# Generated checkid_setup request to http://testserver/openid/provider/login/ with assocication {HMAC-SHA1}{51d49995}{s/kRmA==}
|
||||
|
||||
import openid.oidutil
|
||||
openid.oidutil.log = lambda message, level=0: None
|
||||
|
||||
Reference in New Issue
Block a user