Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Apr 30, 2024
1 parent 3927dd1 commit 536bc52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/tests/unit_tests/utils/yaml/test_yaml_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def prepare_invalid_yaml_file(tmp_path, monkeypatch) -> str:
city: Example City
country: Example Country
age: 30
empty_key:
gender: male
languages:
- Python
Expand All @@ -57,6 +58,7 @@ def test_load_valid_yaml_file(prepare_example_yaml_file):
assert len(yaml_data) > 0
assert yaml_data['age'] == 30
assert yaml_data['gender'] == 'male'
assert yaml_data.get('empty_key') is None
assert yaml_data['address']['city'] == 'Example City'
assert set(yaml_data['languages']) == {'Python', 'Java', 'C++'}

Expand Down

0 comments on commit 536bc52

Please sign in to comment.