Skip to content

Commit

Permalink
added test for yaml read
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Denisov committed Nov 21, 2023
1 parent 2f9eb7f commit 00a441b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/query_runner/test_yandex_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ def test_run_query_with_empty_query(mock_yandex_disk):
assert result == (None, "Query is empty")


@skip_condition
def test_run_query_nonstring_yaml(mock_yandex_disk):
bad_yaml_query = None
data, error = mock_yandex_disk.run_query(bad_yaml_query, "user")
assert data is None
assert error is not None


@skip_condition
def test_run_query_bad_yaml(mock_yandex_disk):
bad_yaml_query = "unparseable = yaml"
Expand Down

0 comments on commit 00a441b

Please sign in to comment.