1
0
mirror of https://github.com/django/django.git synced 2025-03-26 01:00:46 +00:00

Refs #34320 -- Added skipIf for a test requiring check constraints.

This commit is contained in:
Tim Graham 2023-02-24 00:00:00 -05:00 committed by GitHub
parent 16c966ff7f
commit 40e88ae8c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2073,6 +2073,9 @@ class SchemaTests(TransactionTestCase):
with self.assertRaises(IntegrityError):
NoteRename.objects.create(detail_info=None)
@skipUnlessDBFeature(
"supports_column_check_constraints", "can_introspect_check_constraints"
)
@isolate_apps("schema")
def test_rename_field_with_check_to_truncated_name(self):
class AuthorWithLongColumn(Model):