From c6b46f6db3dec0ca2caaee4a9d7384655e7d2f52 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Fri, 6 Sep 2024 18:58:59 +0100 Subject: [PATCH] Update expected warning message in tests --- tests/test_fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_fields.py b/tests/test_fields.py index bae8ed062..1403a6a35 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -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):