Skip to content

Commit

Permalink
Update expected warning message in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke authored Sep 6, 2024
1 parent 1289689 commit c6b46f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,8 +1266,8 @@ def test_warning_when_not_decimal_types(self, caplog):
assert len(w) == 2
assert all(issubclass(i.category, UserWarning) for i in w)

assert 'max_value should be a Decimal instance' in str(w[0].message)
assert 'min_value should be a Decimal instance' in str(w[1].message)
assert 'max_value should be an integer or Decimal instance' in str(w[0].message)
assert 'min_value should be an integer or Decimal instance' in str(w[1].message)


class TestAllowEmptyStrDecimalFieldWithValidators(FieldValues):
Expand Down

0 comments on commit c6b46f6

Please sign in to comment.