summaryrefslogtreecommitdiff
path: root/tests/modeltests/test_client/models.py
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2012-04-30 21:38:44 +0300
committerAnssi Kääriäinen <akaariai@gmail.com>2012-04-30 22:10:27 +0300
commit8fad77da9597e0dd9fca1eaa3a7b605f76501872 (patch)
treeb15204c3930465dd38f8db1e2e83850dc80d9bfd /tests/modeltests/test_client/models.py
parent2a09404792f9d369718143fdfbe9530fe2e60912 (diff)
Ensured tests pass using custom PASSWORD_HASHERS.
Diffstat (limited to 'tests/modeltests/test_client/models.py')
-rw-r--r--tests/modeltests/test_client/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/modeltests/test_client/models.py b/tests/modeltests/test_client/models.py
index 02666cef52..cfbb4fba7a 100644
--- a/tests/modeltests/test_client/models.py
+++ b/tests/modeltests/test_client/models.py
@@ -25,10 +25,11 @@ from __future__ import absolute_import
from django.conf import settings
from django.core import mail
from django.test import Client, TestCase, RequestFactory
+from django.test.utils import override_settings
from .views import get_view
-
+@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))
class ClientTest(TestCase):
fixtures = ['testdata.json']