Self documenting test cases
Many of the test cases are used to test edge cases and interesting scenarios in the infrastructure update process (or other features). Some of these can create their own documentation via outputs plots, enabling the tests to serve a dual purpose of both functional testing and documentation.
To create plots along with the tests pass the command line argument --plot
, for example
pytest tests/test_remove_point_sites.py::test_metadata_handling --plot
will run this particular test which creates plots in the site_polygons
folder.