unit test
This commit is contained in:
parent
6046d8f629
commit
b802b5911e
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue