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,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 = {}
|
||||
|
||||
Reference in New Issue
Block a user