Skip to content

Commit 64bb5a8

Browse files
committed
add tests for old scda and scwv
1 parent 3dfb60d commit 64bb5a8

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

tests/test_ecmwf.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,29 @@ def test_ifs_download(date):
3333
f.unlink()
3434

3535

36+
@pytest.mark.parametrize("date", DATES)
37+
def test_ifs_scda_download(date):
38+
# use minus to avoid early download
39+
date6 = date - timedelta(hours=6)
40+
H = Herbie(date6, model="ifs", product="scda", save_dir=save_dir, overwrite=True)
41+
42+
# Test full file download
43+
f = H.download()
44+
assert H.get_localFilePath().exists()
45+
f.unlink()
46+
47+
@pytest.mark.parametrize("date", DATES)
48+
def test_ifs_scwv_download(date):
49+
# use minus to avoid early download
50+
date6 = date - timedelta(hours=6)
51+
H = Herbie(date6, model="ifs", product="scwv", save_dir=save_dir, overwrite=True)
52+
53+
# Test full file download
54+
f = H.download()
55+
assert H.get_localFilePath().exists()
56+
f.unlink()
57+
58+
3659
@pytest.mark.parametrize("date", DATES)
3760
def test_ifs_download_partial(date):
3861
H = Herbie(date, model="ifs", product="oper", save_dir=save_dir, overwrite=True)

0 commit comments

Comments
 (0)