-
Notifications
You must be signed in to change notification settings - Fork 64
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
Conversation
- 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
There was a problem hiding this 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.
There was a problem hiding this 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).
test/unit_tests/sample_scheme_files/CCPPeq1_var_in_fort_meta.meta
Outdated
Show resolved
Hide resolved
Can you point me to a case where this relative_path is actually used?
…On Wed, Sep 16, 2020 at 5:03 PM goldy ***@***.***> wrote:
***@***.**** requested changes on this pull request.
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).
------------------------------
In test/unit_tests/sample_scheme_files/CCPPeq1_var_in_fort_meta.meta
<#323 (comment)>:
> @@ -1,5 +1,11 @@
+[ccpp-table-properties]
+ name = CCPPeq1_var_in_fort_meta
+ type = scheme
+ dependencies =
Is this purposely testing a blank dependencies line? This feature should
be checked, i.e., a blank or absent line should be tested as None (via
table.dependencies) and a value should be tested to see if it is the
correct string.
Also, the new relative_path keyword should be tested in the same manner.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#323 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3WNU2GFJNYMCQAORCNUZDSGE74XANCNFSM4RPDUDFA>
.
|
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?
…On Thu, Sep 17, 2020 at 8:26 AM Julie Schramm ***@***.***> wrote:
Can you point me to a case where this relative_path is actually used?
On Wed, Sep 16, 2020 at 5:03 PM goldy ***@***.***> wrote:
> ***@***.**** requested changes on this pull request.
>
> 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).
> ------------------------------
>
> In test/unit_tests/sample_scheme_files/CCPPeq1_var_in_fort_meta.meta
> <#323 (comment)>:
>
> > @@ -1,5 +1,11 @@
> +[ccpp-table-properties]
> + name = CCPPeq1_var_in_fort_meta
> + type = scheme
> + dependencies =
>
> Is this purposely testing a blank dependencies line? This feature should
> be checked, i.e., a blank or absent line should be tested as None (via
> table.dependencies) and a value should be tested to see if it is the
> correct string.
> Also, the new relative_path keyword should be tested in the same manner.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#323 (review)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA3WNU2GFJNYMCQAORCNUZDSGE74XANCNFSM4RPDUDFA>
> .
>
|
No, it is just a string or |
Yes, I agree. Because of that, you can just omit the |
pylint rated at 10.00/10 for test_metadata_scheme_file.py All tests pass for test_metadata_scheme_file.py
@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? |
There was a problem hiding this 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.
There was a problem hiding this 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.
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