diff options
| author | Simon Charette <charette.s@gmail.com> | 2015-11-17 00:39:28 -0500 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2016-01-06 20:00:07 -0500 |
| commit | a08fda2111d811aa53f11218fa03f3300dfff4cb (patch) | |
| tree | 0263cf99adf17c5123b3a53c686f637d5b40eda4 /tests/signals | |
| parent | 3096f4b0829a005c67a14cc4bb6d345aa32672a1 (diff) | |
Fixed #25746 -- Isolated inlined test models registration.
Thanks to Tim for the review.
Diffstat (limited to 'tests/signals')
| -rw-r--r-- | tests/signals/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/signals/tests.py b/tests/signals/tests.py index ba99316bfb..f3bbc05f65 100644 --- a/tests/signals/tests.py +++ b/tests/signals/tests.py @@ -4,6 +4,7 @@ from django.db import models from django.db.models import signals from django.dispatch import receiver from django.test import TestCase +from django.test.utils import isolate_apps from django.utils import six from .models import Author, Book, Car, Person @@ -285,6 +286,7 @@ class LazyModelRefTest(BaseSignalTest): finally: signals.post_init.disconnect(self.receiver, sender=Book) + @isolate_apps('signals') def test_not_loaded_model(self): signals.post_init.connect( self.receiver, sender='signals.Created', weak=False |
