Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port test_grib_load_translations from iris #191

Merged
merged 3 commits into from
Feb 20, 2020

Conversation

pp-mo
Copy link
Member

@pp-mo pp-mo commented Feb 19, 2020

Tests ported from iris.tests.test_grib_load_translations.
Renamed and slightly simplified, as this (now) only tests the old GRIB-1 mechanisms.

A case could be made for combining this with the existing "sister" testcode iris_grib.tests.unit.grib1_load_rules.test_grib1_convert, and unifying the approaches.
But for GRIB1 I think this is strictly not worth it.
Maybe when we port GRIB1 to the new "strict" loader code ?

@coveralls
Copy link

Coverage Status

Coverage increased (+1.4%) to 88.223% when pulling 267868d on pp-mo:testsfromiris_grib1_load_translations into a09fb02 on SciTools:master.

@pp-mo pp-mo requested a review from lbdreyer February 19, 2020 20:30
@pp-mo pp-mo changed the title Testsfromiris grib1 load translations Port test_grib_load_translations from iris Feb 19, 2020
@lbdreyer
Copy link
Member

But for GRIB1 I think this is strictly not worth it.

I definitely agree with this!

}
)
# Add edition-dependent settings.
self["edition"] = edition
Copy link
Member

Choose a reason for hiding this comment

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

Arguably you could edit this... but I don't think we need to worry about that right now

Copy link
Member

@lbdreyer lbdreyer Feb 20, 2020

Choose a reason for hiding this comment

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

The way this is written, it still suggests that you can control what you get depending on what edition you supply to _init_minimal_message ,when that's not quite true anymore. But you do assert the edition is 1 later on.

@lbdreyer
Copy link
Member

Overall I'm happy with this. I'll merge...

@lbdreyer lbdreyer merged commit c7ee038 into SciTools:master Feb 20, 2020
@pp-mo pp-mo deleted the testsfromiris_grib1_load_translations branch June 16, 2020 13:01
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