Commit 1dbbbb10 by Ned Batchelder

Merge pull request #351 from edx/ned/make-tests-quieter

Provide a null log function for OpenID to keep it from spewing during tests
parents a6a266d7 759b4865
...@@ -195,3 +195,11 @@ PASSWORD_HASHERS = ( ...@@ -195,3 +195,11 @@ PASSWORD_HASHERS = (
'django.contrib.auth.hashers.MD5PasswordHasher', 'django.contrib.auth.hashers.MD5PasswordHasher',
# 'django.contrib.auth.hashers.CryptPasswordHasher', # '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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment