diff options
| author | Tim Graham <timograham@gmail.com> | 2024-07-26 17:01:48 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-07-26 17:08:53 +0200 |
| commit | 3b70cf4930372690a824eb001af15cb9b483bdeb (patch) | |
| tree | f8be06bb99100773872e91e8a099c94b31259ab5 /tests | |
| parent | ca9880b98f2205c7928d997f95989b640b80001c (diff) | |
[5.0.x] Added missing skips in constraint tests.
Backport of b6ad8b687adf011245270df17a38c1a42792e3d7 from main.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/constraints/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/constraints/tests.py b/tests/constraints/tests.py index b7fe7cc8db..67d00b67ce 100644 --- a/tests/constraints/tests.py +++ b/tests/constraints/tests.py @@ -865,6 +865,7 @@ class UniqueConstraintTests(TestCase): ChildUniqueConstraintProduct(name=self.p1.name, color=self.p1.color), ) + @skipUnlessDBFeature("supports_table_check_constraints") def test_validate_fields_unattached(self): Product.objects.create(price=42) constraint = models.UniqueConstraint(fields=["price"], name="uniq_prices") @@ -1039,6 +1040,7 @@ class UniqueConstraintTests(TestCase): is_not_null_constraint.validate(Product, Product(price=4, discounted_price=3)) is_not_null_constraint.validate(Product, Product(price=2, discounted_price=1)) + @skipUnlessDBFeature("supports_table_check_constraints") def test_validate_nulls_distinct_expressions(self): Product.objects.create(price=42) constraint = models.UniqueConstraint( |
