Python testing with pytest
Opened this issue · 0 comments
ma595 commented
ONEFlux does not currently have any automated testing of python code. We intend to update the ONEFlux Python code to python3 (see #8 ..). Unittest tests exist, but serve to check the importing of ONEFlux only.
ONEFlux would benefit from the implementation of a GitHub workflow in which the following is done automatically upon the submission of a pull request (PR).
- Build oneflux
- Gather example data
US-ARc_sample_input
- Execute integration test - possibly
partitioning_nt.py
step
This runs an integration test. Unit testing can be done in the same way. I would suggest using pytest as an alternative to Unittest.