From b802b5911ebb88f9208e9524270cb6909cb24ab3 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Sat, 29 Jul 2023 00:19:11 -0700 Subject: [PATCH] unit test --- tests/unit/utils/test_yaml.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/unit/utils/test_yaml.py b/tests/unit/utils/test_yaml.py index fe5f2a90..2e57aa5c 100644 --- a/tests/unit/utils/test_yaml.py +++ b/tests/unit/utils/test_yaml.py @@ -69,10 +69,7 @@ def test_load_yaml_file_not_found(): def test_load_yaml_invalid_syntax(bad_yaml_file_path: str): with pytest.raises( InvalidYamlException, - match=re.escape( - f"'{bad_yaml_file_path}' has invalid YAML, " - f"copy-paste it into a YAML checker to find the issue." - ), + match=f"'{bad_yaml_file_path}' has invalid YAML", ): load_yaml(file_path=bad_yaml_file_path)