Open truth-quark opened 2 weeks ago
As an initial unit testing exercise, let's start with a standalone function with only inputs/outputs. The um2nc callback_function() is a good one to try: https://github.com/ACCESS-NRI/amami/blob/main/amami/parsers/um2nc_parser.py#L33-L74
callback_function()
Let's split this into parts, so reviews/feedback can be staged between task blocks.
Bonus questions for reviews:
Part 1 Tasks - Initial unit testing (retrofitting style):
pytest
Can check & review here.
Part 2 Tasks - More unit testing for coverage:
Check & review here too.
Part 3 Tasks - Unit testing supporting refactoring:
Final wrap up
As an initial unit testing exercise, let's start with a standalone function with only inputs/outputs. The um2nc
callback_function()
is a good one to try: https://github.com/ACCESS-NRI/amami/blob/main/amami/parsers/um2nc_parser.py#L33-L74Let's split this into parts, so reviews/feedback can be staged between task blocks.
Bonus questions for reviews:
Part 1 Tasks - Initial unit testing (retrofitting style):
pytest
can be run from the command line & IDECan check & review here.
Part 2 Tasks - More unit testing for coverage:
Check & review here too.
Part 3 Tasks - Unit testing supporting refactoring:
Final wrap up