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/apps/tests.py | |
| parent | 3096f4b0829a005c67a14cc4bb6d345aa32672a1 (diff) | |
Fixed #25746 -- Isolated inlined test models registration.
Thanks to Tim for the review.
Diffstat (limited to 'tests/apps/tests.py')
| -rw-r--r-- | tests/apps/tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/apps/tests.py b/tests/apps/tests.py index 9dad3cfb86..198b0a92c4 100644 --- a/tests/apps/tests.py +++ b/tests/apps/tests.py @@ -9,7 +9,7 @@ from django.contrib.admin.models import LogEntry from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured from django.db import models from django.test import SimpleTestCase, override_settings -from django.test.utils import extend_sys_path +from django.test.utils import extend_sys_path, isolate_apps from django.utils import six from django.utils._os import upath @@ -260,7 +260,8 @@ class AppsTests(SimpleTestCase): finally: apps.apps_ready = True - def test_lazy_model_operation(self): + @isolate_apps('apps', kwarg_name='apps') + def test_lazy_model_operation(self, apps): """ Tests apps.lazy_model_operation(). """ |
