Commit c219d63c authored by BorjaEst's avatar BorjaEst
Browse files

Extend test004 to ensure skimming skips

parent 6cef592b
ECMWF:
ERA-i:
ErrorModels:
correct_variable:
vmro3_zm: # Correct variable
name: vmro3
paths: Ecmwf/Erai/vmro3_????.nc
......@@ -8,6 +8,7 @@ ECMWF:
plev: level
lat: latitude
lon: longitude
non_existing_variable:
tco3_zm: # Incorrect variable
name: non_existing_var
paths: Ecmwf/Erai/toz_????.nc
......
......@@ -159,8 +159,10 @@ class TestO3SKIM_sources(unittest.TestCase):
[source.skim() for source in ds.values()]
# ECMWF data skim asserts
self.assertTrue(os.path.isdir("output/ECMWF_ERA-i"))
self.assertTrue(os.path.exists("output/ECMWF_ERA-i/vmro3_zm.nc"))
self.assertTrue(os.path.isdir("output/ErrorModels_correct_variable"))
self.assertTrue(os.path.exists("output/ErrorModels_correct_variable/vmro3_zm.nc"))
self.assertTrue(os.path.isdir("output/ErrorModels_non_existing_variable"))
self.assertTrue(len(os.listdir("output/ErrorModels_non_existing_variable")) == 0)
# Checks the original data has not been modified
self.assert_with_backup()
......
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