diff options
| author | Simon Charette <charette.s@gmail.com> | 2016-02-04 11:47:51 -0500 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2016-02-04 12:30:34 -0500 |
| commit | 6eb3ce11e4d6be237ad2e4895d8ae0b7bc1803dc (patch) | |
| tree | 0b14e1f387c7009cb89fcf905722805bc43392f2 /tests/auth_tests/test_basic.py | |
| parent | 19318507d92d35f5f5cee6bfb7c379efa309c4f8 (diff) | |
Fixed #26089 -- Removed custom user test models from public API.
Thanks to Tim Graham for the review.
Diffstat (limited to 'tests/auth_tests/test_basic.py')
| -rw-r--r-- | tests/auth_tests/test_basic.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auth_tests/test_basic.py b/tests/auth_tests/test_basic.py index 6fe88f769f..81b7ac9c56 100644 --- a/tests/auth_tests/test_basic.py +++ b/tests/auth_tests/test_basic.py @@ -3,13 +3,14 @@ from __future__ import unicode_literals from django.apps import apps from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser, User -from django.contrib.auth.tests.custom_user import CustomUser from django.core.exceptions import ImproperlyConfigured from django.dispatch import receiver from django.test import TestCase, override_settings from django.test.signals import setting_changed from django.utils import translation +from .models import CustomUser + @receiver(setting_changed) def user_model_swapped(**kwargs): @@ -87,7 +88,7 @@ class BasicTestCase(TestCase): "The current user model can be retrieved" self.assertEqual(get_user_model(), User) - @override_settings(AUTH_USER_MODEL='auth.CustomUser') + @override_settings(AUTH_USER_MODEL='auth_tests.CustomUser') def test_swappable_user(self): "The current user model can be swapped out for another" self.assertEqual(get_user_model(), CustomUser) |
