Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Dec 6, 2024
1 parent b671038 commit fcad87b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_model_field_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,16 @@ def test_field_choices_constraint(test_case):
"blank_included",
"integer_blank_invalid",
}
assert 'check=models.Q(partial__in=["S", "C"]))' in errors["partial"].hint
assert "check=models.Q(missed__in=[1, 2]))" in errors["missed"].hint
assert 'condition=models.Q(partial__in=["S", "C"]))' in errors["partial"].hint
assert "condition=models.Q(missed__in=[1, 2]))" in errors["missed"].hint
assert (
'check=models.Q(blank_missed__in=["A", "B", ""])' in errors["blank_missed"].hint
'condition=models.Q(blank_missed__in=["A", "B", ""])' in errors["blank_missed"].hint
)
assert (
'check=models.Q(blank_included__in=["A", "B", ""])'
'condition=models.Q(blank_included__in=["A", "B", ""])'
in errors["blank_included"].hint
)
assert (
"check=models.Q(integer_blank_invalid__in=[1, 2])"
"condition=models.Q(integer_blank_invalid__in=[1, 2])"
in errors["integer_blank_invalid"].hint
)

0 comments on commit fcad87b

Please sign in to comment.