mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #25746 -- Isolated inlined test models registration.
Thanks to Tim for the review.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
from django.db import connections, models
|
||||
from django.test import TestCase, mock
|
||||
from django.test.utils import override_settings
|
||||
|
||||
from .tests import IsolateModelsMixin
|
||||
from django.test.utils import isolate_apps, override_settings
|
||||
|
||||
|
||||
class TestRouter(object):
|
||||
@@ -14,7 +12,8 @@ class TestRouter(object):
|
||||
|
||||
|
||||
@override_settings(DATABASE_ROUTERS=[TestRouter()])
|
||||
class TestMultiDBChecks(IsolateModelsMixin, TestCase):
|
||||
@isolate_apps('check_framework')
|
||||
class TestMultiDBChecks(TestCase):
|
||||
multi_db = True
|
||||
|
||||
def _patch_check_field_on(self, db):
|
||||
|
||||
Reference in New Issue
Block a user