Skip to content
Snippets Groups Projects
Commit 4d6f4dee authored by leufen1's avatar leufen1
Browse files

tests are now up-to-date

parent 9d97c483
No related branches found
No related tags found
3 merge requests!226Develop,!225Resolve "release v1.2.0",!198Resolve "REFAC: "bad" stations do not report which variable is missing"
Pipeline #53994 passed
......@@ -26,7 +26,7 @@ class TestDownloadJoin:
with pytest.raises(EmptyQueryResult) as e:
download_join("DEBW107", {"o3": "dma8eu"}, "traffic")
assert e.value.args[-1] == "No data found for variables {'o3'} and options station=['DEBW107'], type=traffic," \
" network=None, origin={'o3': ''} in JOIN."
" network=None, origin={} in JOIN."
def test_download_incomplete(self):
with pytest.raises(EmptyQueryResult) as e:
......@@ -64,11 +64,12 @@ class TestLoadSeriesInformation:
def test_standard_query(self):
expected_subset = {'o3': 23031, 'no2': 39002, 'temp': 85584, 'wspeed': 17060}
assert expected_subset.items() <= load_series_information(['DEBW107'], None, None, join_settings()[0],
{}).items()
res, orig = load_series_information(['DEBW107'], None, None, join_settings()[0], {})
assert expected_subset.items() <= res.items()
def test_empty_result(self):
assert load_series_information(['DEBW107'], "traffic", None, join_settings()[0], {}) == {}
res, orig = load_series_information(['DEBW107'], "traffic", None, join_settings()[0], {})
assert res == {}
class TestSelectDistinctSeries:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment