From 00a441ba3dc412062dcfb9313462f15b71b4d630 Mon Sep 17 00:00:00 2001 From: Vladislav Denisov Date: Tue, 21 Nov 2023 20:52:03 +0300 Subject: [PATCH] added test for yaml read --- tests/query_runner/test_yandex_disk.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/query_runner/test_yandex_disk.py b/tests/query_runner/test_yandex_disk.py index bdd5ce8b3e..89d2f7a3d6 100644 --- a/tests/query_runner/test_yandex_disk.py +++ b/tests/query_runner/test_yandex_disk.py @@ -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"