Skip to content

Commit

Permalink
Skip 'wrong loader' tests when no test data.
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed May 28, 2020
1 parent 3a0103e commit 4a858fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/iris/tests/unit/fileformats/test_loader_kwargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,15 @@ def test_no_extra_args(self):
dict(fnames=[self.test_filepath], callback=None, loader_kwargs={}),
)

@tests.skip_data
def test_wrong_loader_noargs_ok(self):
filepath = tests.get_data_path(
["NetCDF", "global", "xyz_t", "GEMS_CO2_Apr2006.nc"]
)
result = self._load_a_cube(filepath, "co2")
self.assertIsNot(result, None)

@tests.skip_data
def test_wrong_loader_withargs__fail(self):
filepath = tests.get_data_path(
["NetCDF", "global", "xyz_t", "GEMS_CO2_Apr2006.nc"]
Expand Down

0 comments on commit 4a858fd

Please sign in to comment.