mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #25746 -- Isolated inlined test models registration.
Thanks to Tim for the review.
This commit is contained in:
@@ -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().
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user