Remove and ignore visualization side-effect outputs

This commit is contained in:
Michael Osthege
2024-10-07 19:44:07 +02:00
committed by Andreas
parent 929d7e0a75
commit b6d0ef22f3
3 changed files with 7 additions and 0 deletions

View File

@@ -32,3 +32,7 @@ def test_optimize(fn_in, fn_out):
# This does not assert that the optimization always gives the same result!
# Reproducibility and mathematical accuracy should be tested on the level of individual components.
assert set(ergebnis) == set(expected_output_data)
# The function creates a visualization result PDF as a side-effect.
fp_viz = Path(".") / "visualization_results.pdf"
assert fp_viz.exists()