Commit 38610718 authored by BorjaEst's avatar BorjaEst
Browse files

Update test_skimmed_vmro3 [by-decade]

only 1 file is generated for each 10 years
parent acb71fe4
...@@ -169,9 +169,13 @@ class TestSkimming_ByDecade: ...@@ -169,9 +169,13 @@ class TestSkimming_ByDecade:
for y in year_line: for y in year_line:
if y % 10 == 0: if y % 10 == 0:
assert os.path.isfile("tco3_zm_{}-{}.nc".format(y, y + 10)) assert os.path.isfile("tco3_zm_{}-{}.nc".format(y, y + 10))
else:
assert not os.path.isfile("tco3_zm_{}-{}.nc".format(y, y + 10))
@pytest.mark.parametrize('model_name', models_vmro, indirect=True) @pytest.mark.parametrize('model_name', models_vmro, indirect=True)
def test_skimmed_vmro3(self, skimmed_model): def test_skimmed_vmro3(self, skimmed_model):
for y in year_line: for y in year_line:
if y % 10 == 0: if y % 10 == 0:
assert os.path.isfile("vmro3_zm_{}-{}.nc".format(y, y + 10)) assert os.path.isfile("vmro3_zm_{}-{}.nc".format(y, y + 10))
else:
assert not os.path.isfile("vmro3_zm_{}-{}.nc".format(y, y + 10))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment