Skip to content

Commit 19f4deb

Browse files
authored
Update test_yaml.py
Update incorrect encoding test after read_file method changes.
1 parent 8c77828 commit 19f4deb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/unit/sdk/test_yaml.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ def test_read_missing_file() -> None:
1616

1717

1818
def test_read_incorrect_encoding() -> None:
19-
file = here / "test_data/schema_encoding_error.yml"
20-
yaml_file = YamlFile(location=file)
19+
file_name = "schema_encoding_error.yml"
20+
full_path = here / "test_data" / file_name
21+
yaml_file = YamlFile(location=full_path)
2122
yaml_file.load_content()
2223
assert not yaml_file.valid
23-
assert yaml_file.error_message == f"Unable to read {file} with utf-8 encoding"
24+
assert yaml_file.error_message == f"Unable to read {file_name} with utf-8 encoding"
2425

2526

2627
def test_read_multiple_files() -> None:

0 commit comments

Comments
 (0)