File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -865,6 +865,7 @@ def test_validate(self):
865
865
ChildUniqueConstraintProduct (name = self .p1 .name , color = self .p1 .color ),
866
866
)
867
867
868
+ @skipUnlessDBFeature ("supports_table_check_constraints" )
868
869
def test_validate_fields_unattached (self ):
869
870
Product .objects .create (price = 42 )
870
871
constraint = models .UniqueConstraint (fields = ["price" ], name = "uniq_prices" )
@@ -1039,6 +1040,7 @@ def test_validate_nullable_textfield_with_isnull_true(self):
1039
1040
is_not_null_constraint .validate (Product , Product (price = 4 , discounted_price = 3 ))
1040
1041
is_not_null_constraint .validate (Product , Product (price = 2 , discounted_price = 1 ))
1041
1042
1043
+ @skipUnlessDBFeature ("supports_table_check_constraints" )
1042
1044
def test_validate_nulls_distinct_expressions (self ):
1043
1045
Product .objects .create (price = 42 )
1044
1046
constraint = models .UniqueConstraint (
You can’t perform that action at this time.
0 commit comments