mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #28478 -- Prevented database feature based skipping on tests disallowing queries.
Database features may require a connection to be established to determine whether or not they are enabled.
This commit is contained in:
committed by
Tim Graham
parent
f5b635086a
commit
b181aba7dd
@@ -2,7 +2,7 @@ import unittest
|
||||
|
||||
from django.core.checks import Error, Warning as DjangoWarning
|
||||
from django.db import connection, models
|
||||
from django.test import SimpleTestCase, skipIfDBFeature
|
||||
from django.test import SimpleTestCase, TestCase, skipIfDBFeature
|
||||
from django.test.utils import isolate_apps, override_settings
|
||||
from django.utils.functional import lazy
|
||||
from django.utils.timezone import now
|
||||
@@ -680,7 +680,7 @@ class TimeFieldTests(SimpleTestCase):
|
||||
|
||||
|
||||
@isolate_apps('invalid_models_tests')
|
||||
class TextFieldTests(SimpleTestCase):
|
||||
class TextFieldTests(TestCase):
|
||||
|
||||
@skipIfDBFeature('supports_index_on_text_field')
|
||||
def test_max_length_warning(self):
|
||||
|
||||
Reference in New Issue
Block a user