Skip to content

Commit

Permalink
added atlas v1 smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Dec 19, 2023
1 parent 05adf31 commit b0b5547
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/smoke/test_smoke_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@

C3S_IPCC_ATLAS_CORDEX_COLLECTION = "c3s-ipcc-atlas.tnn.CORDEX-AFR.historical.mon"

C3S_CICA_ATLAS_ERA5_COLLECTION = "c3s-cica-atlas.cd.ERA5.yr"

C3S_CICA_ATLAS_CORDEX_COLLECTION = "c3s-cica-atlas.cdd.CORDEX-CORE.historical.yr"

C3S_CICA_ATLAS_CMIP6_COLLECTION = "c3s-cica-atlas.cd.CMIP6.historical.yr"

WF_C3S_CMIP5 = json.dumps(
{
"doc": "subset+average on cmip5",
Expand Down Expand Up @@ -663,3 +669,36 @@ def test_smoke_execute_c3s_ipcc_atlas_cordex_subset(wps):
urls = wps.execute("subset", inputs)
assert len(urls) == 1
assert "data.mips.copernicus-climate.eu" in urls[0]


def test_smoke_execute_c3s_cica_atlas_cmip6_subset(wps):
inputs = [
("collection", C3S_CICA_ATLAS_CMIP6_COLLECTION),
# ("time", "2000-01-01/2000-12-30"),
# ("original_files", "1"),
]
urls = wps.execute("subset", inputs)
assert len(urls) == 1
assert "data.mips.copernicus-climate.eu" in urls[0]


def test_smoke_execute_c3s_cica_atlas_cordex_subset(wps):
inputs = [
("collection", C3S_CICA_ATLAS_CORDEX_COLLECTION),
# ("time", "2000-01-01/2000-12-30"),
# ("original_files", "1"),
]
urls = wps.execute("subset", inputs)
assert len(urls) == 1
assert "data.mips.copernicus-climate.eu" in urls[0]


def test_smoke_execute_c3s_cica_atlas_era5_subset(wps):
inputs = [
("collection", C3S_CICA_ATLAS_ERA5_COLLECTION),
# ("time", "2000-01-01/2000-12-30"),
# ("original_files", "1"),
]
urls = wps.execute("subset", inputs)
assert len(urls) == 1
assert "data.mips.copernicus-climate.eu" in urls[0]

0 comments on commit b0b5547

Please sign in to comment.