diff options
| author | Simon Charette <charette.s@gmail.com> | 2016-05-18 09:33:53 -0400 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2016-05-18 09:56:29 -0400 |
| commit | 7694e196cee9304883122dc206327566af635f5e (patch) | |
| tree | 301454b56385776f0039c60f135f4fb10b5b4acb /tests/auth_tests/test_basic.py | |
| parent | b9ae662c97534ab01329dae966222b6ed0185034 (diff) | |
Moved the AUTH_USER_MODEL setting changed receiver.
Test suites besides Django's may need the same behavior.
Diffstat (limited to 'tests/auth_tests/test_basic.py')
| -rw-r--r-- | tests/auth_tests/test_basic.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/auth_tests/test_basic.py b/tests/auth_tests/test_basic.py index 7421f66e49..caefa9c7a0 100644 --- a/tests/auth_tests/test_basic.py +++ b/tests/auth_tests/test_basic.py @@ -3,25 +3,16 @@ from __future__ import unicode_literals import warnings -from django.apps import apps from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser, User from django.core.exceptions import ImproperlyConfigured from django.db import IntegrityError -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): - if kwargs['setting'] == 'AUTH_USER_MODEL': - apps.clear_cache() - - class BasicTestCase(TestCase): def test_user(self): "Check that users can be created and can set their password" |
