Skip to content

Python testing with pytest #46

@ma595

Description

@ma595

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:LowLow Priority Issue or PR

    Type

    No type

    Projects

    Status

    Priority:Low

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions