mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-07 22:03:17 +03:00
Update expected warning message in tests
This commit is contained in:
parent
1289689f3b
commit
c6b46f6db3
|
@ -1266,8 +1266,8 @@ class TestMinMaxDecimalField(FieldValues):
|
||||||
assert len(w) == 2
|
assert len(w) == 2
|
||||||
assert all(issubclass(i.category, UserWarning) for i in w)
|
assert all(issubclass(i.category, UserWarning) for i in w)
|
||||||
|
|
||||||
assert 'max_value should be a Decimal instance' in str(w[0].message)
|
assert 'max_value should be an integer or Decimal instance' in str(w[0].message)
|
||||||
assert 'min_value should be a Decimal instance' in str(w[1].message)
|
assert 'min_value should be an integer or Decimal instance' in str(w[1].message)
|
||||||
|
|
||||||
|
|
||||||
class TestAllowEmptyStrDecimalFieldWithValidators(FieldValues):
|
class TestAllowEmptyStrDecimalFieldWithValidators(FieldValues):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user