summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2025-12-30 16:21:57 -0500
committerGitHub <noreply@github.com>2025-12-30 22:21:57 +0100
commitc496a7df64ec0a80c2bab7f155aad567155fb37b (patch)
tree745d5df1c95b2b982c2621e4fd2a364c620eb089
parentccf74f7dc771313b41e7c2912a71f9c5b0ae5e1d (diff)
Refs #21961 -- Added supports_on_delete_db_cascade skips in schema tests.
-rw-r--r--tests/schema/tests.py8
1 files 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)