Moved an import in an auth test; refs #23925.

This keeps tests/__init__.py from importing other modules and may fix a problem
with test discovery revealed in formtools tests on Travis CI.
This commit is contained in:
Tim Graham 2014-12-15 09:47:23 -05:00
parent 9aeb917dad
commit 0d5ca7b560
3 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1 @@
# The password for the fixture data users is 'password'
# For testing that auth backends can be referenced using a convenience import
from django.contrib.auth.tests.test_auth_backends import ImportedModelBackend # NOQA

View File

@ -0,0 +1,2 @@
# For testing that auth backends can be referenced using a convenience import
from django.contrib.auth.tests.test_auth_backends import ImportedModelBackend # NOQA

View File

@ -620,7 +620,7 @@ class ImportedBackendTests(TestCase):
as the one defined in AUTHENTICATION_BACKENDS setting.
"""
backend = 'django.contrib.auth.tests.ImportedModelBackend'
backend = 'django.contrib.auth.tests.backend_alias.ImportedModelBackend'
@override_settings(AUTHENTICATION_BACKENDS=(backend, ))
def test_backend_path(self):