Skip to content

Commit

Permalink
Moved irir-grib skip to iris.tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenworsley committed Oct 21, 2019
1 parent 95972c5 commit 11826d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions lib/iris/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,12 @@ class MyPlotTests(test.GraphicsTest):
'which is not available.')


# TODO: remove these skips when iris-grib is fixed
skip_grib_fail = unittest.skipIf(True,
'Test(s) are failing due to known problems '
'with "iris-grib".')


skip_sample_data = unittest.skipIf(not SAMPLE_DATA_AVAILABLE,
('Test(s) require "iris-sample-data", '
'which is not available.'))
Expand Down
5 changes: 2 additions & 3 deletions lib/iris/tests/integration/test_grib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# Import iris.tests first so that some things can be initialised before
# importing anything else.
import iris.tests as tests
from unittest import skip

from cf_units import Unit
import numpy.ma as ma
Expand Down Expand Up @@ -50,7 +49,7 @@ def test_gdt1(self):
cube = load_cube(path)
self.assertCMLApproxData(cube)

@skip('iris-grib is currently causing errors')
@tests.skip_grib_fail
def test_gdt90_with_bitmap(self):
path = tests.get_data_path(('GRIB', 'umukv', 'ukv_chan9.grib2'))
cube = load_cube(path)
Expand Down Expand Up @@ -282,7 +281,7 @@ def test_regular(self):
cube = load_cube(path)
self.assertCMLApproxData(cube)

@skip('iris-grib is currently causing failures')
@tests.skip_grib_fail
def test_reduced(self):
path = tests.get_data_path(('GRIB', 'reduced', 'reduced_gg.grib2'))
cube = load_cube(path)
Expand Down
3 changes: 1 addition & 2 deletions lib/iris/tests/integration/test_grib_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
# Import iris tests first so that some things can be initialised before
# importing anything else
import iris.tests as tests
from unittest import skip

import iris
import iris.exceptions
Expand Down Expand Up @@ -132,7 +131,7 @@ def test_reduced_ll(self):
("GRIB", "reduced", "reduced_ll.grib1")))
self.assertCML(cube, ("grib_load", "reduced_ll_grib1.cml"))

@skip('iris-grib is currently causing failures')
@tests.skip_grib_fail
def test_reduced_gg(self):
cube = iris.load_cube(tests.get_data_path(
("GRIB", "reduced", "reduced_gg.grib2")))
Expand Down

0 comments on commit 11826d2

Please sign in to comment.