From 052dd52ae4cf48f01663ef33cc2156796e58eb3e Mon Sep 17 00:00:00 2001 From: Nimisha Asthagiri Date: Thu, 26 Feb 2015 12:26:13 -0500 Subject: [PATCH] minor fixes found from the django-upgrade work. --- common/djangoapps/student/tests/test_password_history.py | 2 +- lms/djangoapps/dashboard/management/commands/git_add_course.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/djangoapps/student/tests/test_password_history.py b/common/djangoapps/student/tests/test_password_history.py index efa1e370ed..b964694f47 100644 --- a/common/djangoapps/student/tests/test_password_history.py +++ b/common/djangoapps/student/tests/test_password_history.py @@ -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): diff --git a/lms/djangoapps/dashboard/management/commands/git_add_course.py b/lms/djangoapps/dashboard/management/commands/git_add_course.py index d97a04b881..c48d854d66 100644 --- a/lms/djangoapps/dashboard/management/commands/git_add_course.py +++ b/lms/djangoapps/dashboard/management/commands/git_add_course.py @@ -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