mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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,11 +1,11 @@
|
|||
from django.core import checks
|
||||
from django.db import models
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
from .tests import IsolateModelsMixin
|
||||
from django.test.utils import isolate_apps
|
||||
|
||||
|
||||
class TestDeprecatedField(IsolateModelsMixin, SimpleTestCase):
|
||||
@isolate_apps('check_framework')
|
||||
class TestDeprecatedField(SimpleTestCase):
|
||||
def test_default_details(self):
|
||||
class MyField(models.Field):
|
||||
system_check_deprecated_details = {}
|
||||
|
@ -45,7 +45,8 @@ class TestDeprecatedField(IsolateModelsMixin, SimpleTestCase):
|
|||
])
|
||||
|
||||
|
||||
class TestRemovedField(IsolateModelsMixin, SimpleTestCase):
|
||||
@isolate_apps('check_framework')
|
||||
class TestRemovedField(SimpleTestCase):
|
||||
def test_default_details(self):
|
||||
class MyField(models.Field):
|
||||
system_check_removed_details = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue