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 292f9b3 commit e89a2eb
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions tests/test_hda.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_search_results_slicing():

@pytest.mark.skipif(NO_HDARC, reason="No access to HDA")
def test_hda_1():
# c = Client()
c = Client()

r = {
"datasetId": "EO:CLMS:DAT:CGLS_CONTINENTS_WB_V1_1KM",
Expand All @@ -104,17 +104,15 @@ def test_hda_1():
}
],
}
print(r)
# matches = c.search(r)
# print(matches)
# assert len(matches.results) > 0, matches
# matches.download()
assert True

matches = c.search(r)
print(matches)
assert len(matches.results) > 0, matches


@pytest.mark.skipif(NO_HDARC, reason="No access to HDA")
def test_hda_2():
# c = Client()
c = Client()

r = {
"datasetId": "EO:ECMWF:DAT:CAMS_EUROPE_AIR_QUALITY_REANALYSES",
Expand All @@ -130,8 +128,7 @@ def test_hda_2():
{"name": "format", "value": "tgz"},
],
}
print(r)
# matches = c.search(r)
# assert len(matches.results) == 1, matches
# matches.download()
assert True

matches = c.search(r)
assert len(matches.results) == 1, matches
matches.download()

0 comments on commit e89a2eb

Please sign in to comment.