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

Updates to unit tests in test_metadata_scheme_file.py: #323

Merged
merged 2 commits into from
Oct 7, 2020
Merged

Updates to unit tests in test_metadata_scheme_file.py: #323

merged 2 commits into from
Oct 7, 2020

Conversation

JulieSchramm
Copy link

  • Update unit tests to include ccpp-table-properites
  • Rename sample files preproc_defs_test*.meta to be more descriptive
  • Rename sample files preproc_defs_test*.F90 to be more descriptive

pylint rated at 10.00/10 for test_metadata_scheme_file.py
All tests pass for test_metadata_scheme_file.py

Still need to update test_metadata_table.py

  - Update unit tests to include ccpp-table-properites
  - Rename sample files preproc_defs_test*.meta to be more descriptive
  - Rename sample files preproc_defs_test*.F90 to be more descriptive

pylint rated at 10.00/10 for test_metadata_scheme_file.py
All tests pass for test_metadata_scheme_file.py
Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

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

Looked at it briefly, nothing that sticks out.

Copy link
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

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

This looks good, however, if we are testing the new metadata format, please add some variations in the dependencies and relative_path table properties and test that the correct values are recovered. Also test headers without one or both of these properties (they are optional).

@JulieSchramm
Copy link
Author

JulieSchramm commented Sep 17, 2020 via email

@JulieSchramm
Copy link
Author

JulieSchramm commented Sep 17, 2020 via email

@gold2718
Copy link
Collaborator

gold2718 commented Sep 17, 2020

Can you point me to a case where this relative_path is actually used?

No, it is just a string or None. It is used by the build system which is outside CCPP Framework testing.

@gold2718
Copy link
Collaborator

Also, shouldn't testing of the contents of the table be done with the
test_metadata_table.py unit tests, and not the test_metadata_scheme_file.py
unit tests?

Yes, I agree. Because of that, you can just omit the dependencies keyword from the scheme file test metadata files.

pylint rated at 10.00/10 for test_metadata_scheme_file.py
All tests pass for test_metadata_scheme_file.py
@climbfuji
Copy link
Collaborator

@gold2718 @JulieSchramm following up on this PR - is there anything that needs to be changed before we can get @gold2718's approval and merge it?

@climbfuji climbfuji requested a review from gold2718 October 6, 2020 22:05
@grantfirl grantfirl requested a review from climbfuji October 6, 2020 22:05
Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

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

I did approve this PR in its current form previously, doing it again.

Copy link
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

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

Looks okay now, thanks.

@climbfuji climbfuji merged commit af28719 into NCAR:feature/capgen Oct 7, 2020
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