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:
parent
9aeb917dad
commit
0d5ca7b560
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue