mirror of
https://github.com/django/django.git
synced 2025-11-02 21:03:53 +00:00
Fixed #25746 -- Isolated inlined test models registration.
Thanks to Tim for the review.
This commit is contained in:
parent
3096f4b082
commit
a08fda2111
29 changed files with 285 additions and 371 deletions
|
|
@ -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().
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue