mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +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
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue