From c496a7df64ec0a80c2bab7f155aad567155fb37b Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 30 Dec 2025 16:21:57 -0500 Subject: Refs #21961 -- Added supports_on_delete_db_cascade skips in schema tests. --- tests/schema/tests.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/schema/tests.py b/tests/schema/tests.py index ab6cd60c07..cbc5f57eb9 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -412,7 +412,7 @@ class SchemaTests(TransactionTestCase): ] ) - @skipUnlessDBFeature("can_create_inline_fk") + @skipUnlessDBFeature("can_create_inline_fk", "supports_on_delete_db_cascade") def test_inline_fk_db_on_delete(self): with connection.schema_editor() as editor: editor.create_model(Author) @@ -602,7 +602,11 @@ class SchemaTests(TransactionTestCase): editor.alter_field(Author, new_field2, new_field, strict=True) self.assertForeignKeyNotExists(Author, "tag_id", "schema_tag") - @skipUnlessDBFeature("supports_foreign_keys", "can_introspect_foreign_keys") + @skipUnlessDBFeature( + "supports_foreign_keys", + "can_introspect_foreign_keys", + "supports_on_delete_db_cascade", + ) def test_fk_alter_on_delete(self): with connection.schema_editor() as editor: editor.create_model(Author) -- cgit v1.3