From ab316def6899957c3f43464d53a8f7eadb8582ae Mon Sep 17 00:00:00 2001 From: Ricardo Correa <47784603+ricardo-correa@users.noreply.github.com> Date: Fri, 15 Dec 2023 19:05:42 +0000 Subject: [PATCH] Update test_hda.py --- tests/test_hda.py | 52 +++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/tests/test_hda.py b/tests/test_hda.py index 0405bd3..61ab877 100644 --- a/tests/test_hda.py +++ b/tests/test_hda.py @@ -95,17 +95,17 @@ def test_search_results_slicing(): def test_hda_1(): #c = Client() - #r = { - # "datasetId": "EO:CLMS:DAT:CGLS_CONTINENTS_WB_V1_1KM", - # "dateRangeSelectValues": [ - # { - # "name": "dtrange", - # "start": "2020-04-11T00:00:00.000Z", - # "end": "2020-05-21T00:00:00.000Z", - # } - #], - #} - + r = { + "datasetId": "EO:CLMS:DAT:CGLS_CONTINENTS_WB_V1_1KM", + "dateRangeSelectValues": [ + { + "name": "dtrange", + "start": "2020-04-11T00:00:00.000Z", + "end": "2020-05-21T00:00:00.000Z", + } + ], + } + print(r) # matches = c.search(r) # print(matches) # assert len(matches.results) > 0, matches @@ -118,21 +118,21 @@ def test_hda_1(): def test_hda_2(): #c = Client() - #r = { - # "datasetId": "EO:ECMWF:DAT:CAMS_EUROPE_AIR_QUALITY_REANALYSES", - # "multiStringSelectValues": [ - # {"name": "type", "value": ["validated_reanalysis"]}, - # {"name": "variable", "value": ["ammonia"]}, - # {"name": "model", "value": ["chimere"]}, - # {"name": "level", "value": ["0"]}, - # {"name": "month", "value": ["01"]}, - #{"name": "year", "value": ["2018"]}, - #], - #"stringChoiceValues": [ - # {"name": "format", "value": "tgz"}, - #], - #} - + r = { + "datasetId": "EO:ECMWF:DAT:CAMS_EUROPE_AIR_QUALITY_REANALYSES", + "multiStringSelectValues": [ + {"name": "type", "value": ["validated_reanalysis"]}, + {"name": "variable", "value": ["ammonia"]}, + {"name": "model", "value": ["chimere"]}, + {"name": "level", "value": ["0"]}, + {"name": "month", "value": ["01"]}, + {"name": "year", "value": ["2018"]}, + ], + "stringChoiceValues": [ + {"name": "format", "value": "tgz"}, + ], + } + print(r) # matches = c.search(r) # assert len(matches.results) == 1, matches # matches.download()