We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9d4551 commit 1e75569Copy full SHA for 1e75569
tests/unit/sdk/test_yaml.py
@@ -6,11 +6,13 @@
6
7
8
def test_read_missing_file() -> None:
9
- file = here / "test_data/i_do_not_exist.yml"
10
- yaml_file = YamlFile(location=file)
+ file_name = "i_do_not_exist.yml"
+ dir = here / "test_data"
11
+ full_path = dir / filename
12
+ yaml_file = YamlFile(location=full_path)
13
yaml_file.load_content()
14
assert not yaml_file.valid
- 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}"
16
17
18
def test_read_incorrect_encoding() -> None:
0 commit comments