unit test

This commit is contained in:
Jesse Bannon 2023-07-29 00:19:11 -07:00
parent 6046d8f629
commit b802b5911e

View file

@ -69,10 +69,7 @@ def test_load_yaml_file_not_found():
def test_load_yaml_invalid_syntax(bad_yaml_file_path: str): def test_load_yaml_invalid_syntax(bad_yaml_file_path: str):
with pytest.raises( with pytest.raises(
InvalidYamlException, InvalidYamlException,
match=re.escape( match=f"'{bad_yaml_file_path}' has invalid YAML",
f"'{bad_yaml_file_path}' has invalid YAML, "
f"copy-paste it into a YAML checker to find the issue."
),
): ):
load_yaml(file_path=bad_yaml_file_path) load_yaml(file_path=bad_yaml_file_path)