-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unit testing #38
base: main
Are you sure you want to change the base?
Unit testing #38
Conversation
…' to replace the temporary input file created from the 'replace_landsurface_with_*.py' scripts with the actual input path, by removing '.tmp' from the end.
…h replacement function to use, based on the value of the command line argument '--type'.
100% test coverage for hres_ic.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.
These are nice unit tests and the module is well broken down into functions. I like the use of mock and patch, it's limiting the tests to your own code, a nice way to test different input combinations.
Thank you for the initial review @tmcadam! Great, then I'll continue with this and incorporate the latest updates. Thanks again! |
Unit-testing functions written (with 100% coverage) for the
hres_ic.py
before the latest merge, so it will need to be updated.The
hres_ic.py
script was refactored to allow proper testing.The latest merge introduced changes to
hres_ic.py
that influence the refactoring and overall logic, that need to be properly addressed for testing (#36).Opening this PR so it might get used once unit tests are updated.