minor fixes found from the django-upgrade work.

This commit is contained in:
Nimisha Asthagiri
2015-02-26 12:26:13 -05:00
parent 81ee300132
commit 052dd52ae4
2 changed files with 2 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ class TestPasswordHistory(TestCase):
self.assertTrue(PasswordHistory.is_allowable_password_reuse(staff, "test"))
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.PBKDF2PasswordHasher'))
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.PBKDF2PasswordHasher',))
@patch.dict("django.conf.settings.ADVANCED_SECURITY_CONFIG", {'MIN_DIFFERENT_STAFF_PASSWORDS_BEFORE_REUSE': 2})
@patch.dict("django.conf.settings.ADVANCED_SECURITY_CONFIG", {'MIN_DIFFERENT_STUDENT_PASSWORDS_BEFORE_REUSE': 1})
def test_pbkdf2_sha256_password_reuse(self):

View File

@@ -41,7 +41,7 @@ class Command(BaseCommand):
if len(args) > 3:
raise CommandError('Expected no more than three '
'arguments; recieved {0}'.format(len(args)))
'arguments; received {0}'.format(len(args)))
rdir_arg = None
branch = None