Skip to content

Commit c79a5c5

Browse files
committed
Fix date error assert
1 parent 5b4794f commit c79a5c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/schema/types/test_date.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_serialization_error_message_for_incorrect_date_string():
113113
"""
114114
result = execute_mutation("2021-13-01")
115115
assert result.errors
116-
assert result.errors[0].message == (
116+
assert result.errors[0].message.startswith(
117117
"Variable '$value' got invalid value '2021-13-01'; Value cannot represent a "
118118
'Date: "2021-13-01". month must be in 1..12'
119119
)

0 commit comments

Comments
 (0)