Skip to content

Conversation

@pp-mo
Copy link
Member

@pp-mo pp-mo commented Jun 17, 2020

These are ported directly across from these iris integration tests.

The aim of taking these tests out of Iris is so that we can avoid any need for iris-grib within Iris' own tests.
(not quite there yet, but coming soon...)

That linkage is a headache because at present each requires the other for testing : Therefore, any breaking change (that requires parallel changes to both) can prevent both from passing tests, until both cut new releases.


NOTE: migrating these tests here still leaves open a possible future dependency problem ...
If in future we "split out" either of these other file-formats (name + pp) to a separate package, as we have done with iris-grib itself, that will make iris-grib testing depend on those other file-format packages.
I propose that we simply leave that as a "problem for the future".

@pp-mo
Copy link
Member Author

pp-mo commented Jun 17, 2020

a possible future dependency problem ... depend on those other file-format packages.

Well, the need for mo-pack here shows exactly what that meant !

@trexfeathers
Copy link
Contributor

NOTE: migrating these tests here still leaves open a possible future dependency problem ...
If in future we "split out" either of these other file-formats (name + pp) to a separate package, as we have done with iris-grib itself, that will make iris-grib testing depend on those other file-format packages.
I propose that we simply leave that as a "problem for the future".

😨 😨

@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.482% when pulling 8750e41 on pp-mo:ff_interop_tests into 7a53e7e on SciTools:master.

Copy link
Contributor

@trexfeathers trexfeathers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @pp-mo


class TestNameToGRIB(tests.IrisGribTest):
def check_common(self, name_cube, grib_cube):
self.assertTrue(np.allclose(name_cube.data, grib_cube.data))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch vs the Iris original

@trexfeathers trexfeathers merged commit 4b7797f into SciTools:master Jun 24, 2020
@pp-mo pp-mo deleted the ff_interop_tests branch March 3, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants