Skip to content

Commit 1e75569

Browse files
authored
Update test_yaml.py
Fix test_missing_file after error message change
1 parent f9d4551 commit 1e75569

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/unit/sdk/test_yaml.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66

77

88
def test_read_missing_file() -> None:
9-
file = here / "test_data/i_do_not_exist.yml"
10-
yaml_file = YamlFile(location=file)
9+
file_name = "i_do_not_exist.yml"
10+
dir = here / "test_data"
11+
full_path = dir / filename
12+
yaml_file = YamlFile(location=full_path)
1113
yaml_file.load_content()
1214
assert not yaml_file.valid
13-
assert yaml_file.error_message == f"{file} is not a valid file"
15+
assert yaml_file.error_message == f"{file_name}: not found at {dir}"
1416

1517

1618
def test_read_incorrect_encoding() -> None:

0 commit comments

Comments
 (0)