summaryrefslogtreecommitdiff
path: root/tests/constraints
diff options
context:
space:
mode:
Diffstat (limited to 'tests/constraints')
-rw-r--r--tests/constraints/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/constraints/tests.py b/tests/constraints/tests.py
index c2f99c565d..7ac478a89f 100644
--- a/tests/constraints/tests.py
+++ b/tests/constraints/tests.py
@@ -73,7 +73,7 @@ class CheckConstraintTests(TestCase):
with self.assertRaises(IntegrityError):
Product.objects.create(name='Invalid', price=10, discounted_price=20)
- @skipUnlessDBFeature('supports_table_check_constraints')
+ @skipUnlessDBFeature('supports_table_check_constraints', 'can_introspect_check_constraints')
def test_name(self):
constraints = get_constraints(Product._meta.db_table)
for expected_name in (
@@ -83,7 +83,7 @@ class CheckConstraintTests(TestCase):
with self.subTest(expected_name):
self.assertIn(expected_name, constraints)
- @skipUnlessDBFeature('supports_table_check_constraints')
+ @skipUnlessDBFeature('supports_table_check_constraints', 'can_introspect_check_constraints')
def test_abstract_name(self):
constraints = get_constraints(ChildModel._meta.db_table)
self.assertIn('constraints_childmodel_adult', constraints)