-
Notifications
You must be signed in to change notification settings - Fork 1
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
Expand testing of parse_access_ncfile
to include correctness checks
#187
Comments
@marc-white are you working on this actively/ have you made any progress on this? Thinking of picking this up - I'd like to expand the test suite before continuing with #153. |
@charles-turner-1 no I'm on other things at the moment, so feel free. |
I've added a bunch of tests related to this on branch 187-correctness-checks. As it stands:
I don't think these changes are ready for a (draft) PR yet, so I'm leaving this open & pre-draft for now. Next steps:
The obvious way to get this working is to use tox to test against the multiple dependency versions, so I'm going to get that configured and once we have that working as expected I'll open a PR. |
Is your feature request related to a problem? Please describe.
The current version of
tests/builders/test_builders
checksBaseBuilder.parse_access_ncfile
against a fixed set of files and expected returns, i.e., regression tests it - however, it doesn't check the available file to see if the data returned are actually correct.Describe the feature you'd like
Given we have access to the test files (and they're small, so no particular IO penalty), we could expand the test to check the correctness of the
parse_access_ncfile
return. The idea would be to look at each element of theparse_access_ncfile
return, manually extract the related information from the test file, and compare them.Ideally, this should be done in a slightly different way to how
parse_access_ncfile
does it, in order to provide a redundant sanity check.Describe alternatives you've considered
Nil.
Additional context
I created an issue (#186 ) that suggests we should change the return of
parse_access_ncfile
from atuple
to adict
- doing so would make implementing this feature request easier.The text was updated successfully, but these errors were encountered: