Skip to content

Commit

Permalink
Suppress test that's flaky only on Ubuntu in CI for now
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Oct 31, 2024
1 parent 006439b commit 8312e33
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_subcool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand All @@ -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"
)

0 comments on commit 8312e33

Please sign in to comment.