Update expected warning message in tests

This commit is contained in:
Bruno Alla 2024-09-06 18:58:59 +01:00 committed by GitHub
parent 1289689f3b
commit c6b46f6db3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1266,8 +1266,8 @@ class TestMinMaxDecimalField(FieldValues):
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):