Skip to content

Commit

Permalink
update project_utils test
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Jan 24, 2024
1 parent 3d958cc commit f110d00
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_project_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@


def test_get_project_name(load_test_data):
# cmip5
dset = "cmip5.output1.INM.inmcm4.rcp45.mon.ocean.Omon.r1i1p1.latest.zostoga"
project = get_project_name(dset)
assert project == "cmip5"
Expand All @@ -26,10 +27,6 @@ def test_get_project_name(load_test_data):
project = get_project_name(dset)
assert project == "cmip5"

dset = "CMIP6.CMIP.NCAR.CESM2.historical.r1i1p1f1.SImon.siconc.gn.latest"
project = get_project_name(dset)
assert project == "cmip6"

ds = xr.open_mfdataset(
CMIP5_TAS,
use_cftime=True,
Expand All @@ -38,6 +35,11 @@ def test_get_project_name(load_test_data):
project = get_project_name(ds)
assert project == "cmip5"

# cmip6
dset = "CMIP6.CMIP.NCAR.CESM2.historical.r1i1p1f1.SImon.siconc.gn.latest"
project = get_project_name(dset)
assert project == "cmip6"

ds = xr.open_mfdataset(
CMIP6_SICONC,
use_cftime=True,
Expand Down

0 comments on commit f110d00

Please sign in to comment.