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:
@@ -1,10 +1,11 @@
|
||||
from django.core import checks
|
||||
from django.db import models
|
||||
|
||||
from .base import IsolatedModelsTestCase
|
||||
from django.test import SimpleTestCase
|
||||
from django.test.utils import isolate_apps
|
||||
|
||||
|
||||
class DeprecatedFieldsTests(IsolatedModelsTestCase):
|
||||
@isolate_apps('invalid_models_tests')
|
||||
class DeprecatedFieldsTests(SimpleTestCase):
|
||||
def test_IPAddressField_deprecated(self):
|
||||
class IPAddressModel(models.Model):
|
||||
ip = models.IPAddressField()
|
||||
|
||||
Reference in New Issue
Block a user