diff --git a/tests/test_subcool.py b/tests/test_subcool.py index 474b1c23..ccb6f659 100644 --- a/tests/test_subcool.py +++ b/tests/test_subcool.py @@ -10,6 +10,8 @@ C = Caser(Path("docs") / "notebooks") +# TODO: Fix permission error for test running in CI +@pytest.mark.skipif(bool(environ.get("CI")), reason="Unresolved permission error.") @parametrize_by_cases(C("find_objects")) def test_approaches_close(ns): """Object-finding approaches have similar object counts.""" @@ -24,9 +26,11 @@ def nss(fixtures): return fixtures.ns.test_subcool -@pytest.mark.skipif(bool(environ.get("CI")), reason="CI") +@pytest.mark.skipif(bool(environ.get("CI")), reason="For local inspection only.") def test_synthesis(nss, request): """Synthesize results.""" + plots = Path(request.config.option.plots) + plots.mkdir(parents=True, exist_ok=True) nss.test_approaches_close._.data.plots.composite.savefig( - Path(request.config.option.plots) / "test_approaches_close_composite.png" + plots / "test_approaches_close_composite.png" )