diff --git a/pyproject.toml b/pyproject.toml index 51b4e156..7dd324d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,7 +78,10 @@ skip = ".git,*.ipynb" [tool.pytest.ini_options] -addopts = "-ra -v --doctest-modules --doctest-continue-on-failure --import-mode=importlib" +addopts = "-ra -v --doctest-modules --doctest-continue-on-failure --import-mode=importlib --strict-markers" +markers = [ + "image: plotter rendering image test", +] minversion = "6.0" doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS NUMBER" testpaths = "tests" diff --git a/tests/plotting/test_examples.py b/tests/plotting/test_examples.py index c72ed139..9625908c 100644 --- a/tests/plotting/test_examples.py +++ b/tests/plotting/test_examples.py @@ -1,5 +1,6 @@ """Unit-tests for :mod:`geovista.examples`.""" +import pytest import pyvista as pv from geovista.examples import earthquakes @@ -7,6 +8,7 @@ pv.OFF_SCREEN = True +@pytest.mark.image def test_earthquakes(verify_image_cache): """Image test of earthquakes example.""" verify_image_cache.high_variance_test = True