diff --git a/tests/test_interpolation.py b/tests/test_interpolation.py index e384d0149..fbb67fec1 100644 --- a/tests/test_interpolation.py +++ b/tests/test_interpolation.py @@ -1,6 +1,7 @@ import copy import random import re +from textwrap import dedent from typing import Any, Optional, Tuple import pytest @@ -844,7 +845,12 @@ def drop_last(s: str) -> str: pytest.raises( ValidationError, match=re.escape( - "Value 'seven' could not be converted to Integer\n full_key: age" + dedent( + """\ + Value 'seven' could not be converted to Integer + full_key: age + """ + ) ), ), id="type_mismatch_resolver", @@ -855,7 +861,12 @@ def drop_last(s: str) -> str: pytest.raises( ValidationError, match=re.escape( - "Value 'Bond' could not be converted to Integer\n full_key: age" + dedent( + """\ + Value 'Bond' could not be converted to Integer + full_key: age + """ + ) ), ), id="type_mismatch_node_interpolation",