Skip to content

Commit 60b55a8

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
)

tests/schema/types/test_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_serialization_error_message_for_incorrect_time_string():
112112
"""
113113
result = execute_mutation("25:00")
114114
assert result.errors
115-
assert result.errors[0].message == (
115+
assert result.errors[0].message.startswith(
116116
"Variable '$value' got invalid value '25:00'; Value cannot represent a "
117117
'Time: "25:00". hour must be in 0..23'
118118
)

0 commit comments

Comments
 (0)