Skip to content

Commit

Permalink
Update test_hda.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo-correa authored Dec 15, 2023
1 parent a7cfb4f commit ab316de
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions tests/test_hda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit ab316de

Please sign in to comment.