Skip to content

Commit

Permalink
Add pytest image marker (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored Oct 2, 2023
1 parent b9b9ae9 commit 68d4bdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions tests/plotting/test_examples.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
"""Unit-tests for :mod:`geovista.examples`."""

import pytest
import pyvista as pv

from geovista.examples import earthquakes

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
Expand Down

0 comments on commit 68d4bdf

Please sign in to comment.