semanticarts / ontology-toolkit

Tools to update and export ontology RDF.
Apache License 2.0
34 stars 6 forks source link

Clean stale test outputs before running graphics tests #133

Closed kstudzin closed 1 month ago

kstudzin commented 1 month ago

Currently, when running graphics tests, if you make a change that (incorrectly) leads to no output being generated, the old test file does not get overwritten. This means data from the last good test is still there and the test may falsely pass. If we clean old files before running the tests, this can't happen

sa-bpelakh commented 1 month ago

We could use a @pytest.fixture(autouse=True, scope="session") and clean up all old test artifacts before each test runs as long as we standardize the location and naming of said artifacts. Or change it to module scope so we can localize cleanup to each test_* file.