1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Ensured tests pass using custom PASSWORD_HASHERS.

This commit is contained in:
Anssi Kääriäinen
2012-04-30 21:38:44 +03:00
parent 2a09404792
commit 8fad77da95
15 changed files with 74 additions and 11 deletions

View File

@@ -3,10 +3,12 @@ from __future__ import absolute_import
from django.core.urlresolvers import reverse
from django.template.response import TemplateResponse
from django.test import TestCase
from django.test.utils import override_settings
from .models import Action
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))
class AdminCustomUrlsTest(TestCase):
fixtures = ['users.json', 'actions.json']