-
Notifications
You must be signed in to change notification settings - Fork 297
Closed
Description
We still have Iris test code which reference details of iris-grib or GribMessage, or even (in grib1 support), the old GribWrapper class.
Everything grib-related needs to be divided into classes:
- generic integration usage of grib load/save : can stay as long as tests only refer to cube contents
- iris-grib specific : move to iris-grib
- of these, some old tests are probably obsolete + can just be ditched
This comment attempts to describe how this should work.
Here's a list :
- in iris.tests
- test_grib_load_translations.py : --> iris-grib (N.B. actually GRIB1-specific, should also be renamed)
- test_grib_save.py : maybe --> iris-grib, or maybe obsolete
- test_grib_save_rules.py : maybe --> iris-grib, or maybe obsolete
- in iris.tests.integration
- test_grib2.py : --> iris-grib
- test_grib_load.py : --> iris-grib
- note: testing is integrational, cube-properties only : nevertheless does not belong in Iris, ideally : Also, source files are in iris-test-data, which could also be tidied out ?
- test_pickle : the section TestGribMessage : --> iris_grib ?
- in iris.tests.integration.format_interop
- test_name_grib.py : stays?
- test_pp_grib.py : stays?
Ideally, all of this can be moved to iris-grib integration and unit tests, except:
- the iris.tests.integration.format_interop tests (they only test cubes)
- Iris should have simple integration tests to check that the iris-grib interfacing itself works.
- probably just short tests for loading GRIB1 and GRIB2 files, and saving to GRIB2.