Skip to content

Commit

Permalink
remove test examples cache
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle committed Jun 11, 2024
1 parent 53c950f commit fa659bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ image_cache_dir = "tests/plotting/image_cache"
log_cli = "True"
log_cli_level = "INFO"
markers = [
"example: geovista example image tests",
"image: plotter rendering image tests",
"example: gallery image tests",
"image: plotting image tests",
]
minversion = "6.0"
required_plugins = "pytest-mock pytest_pyvista"
Expand Down
5 changes: 0 additions & 5 deletions tests/plotting/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import pytest

from geovista.cache import CACHE
from geovista.common import get_modules

from . import CI
Expand Down Expand Up @@ -43,9 +42,5 @@ def test(example, verify_image_cache):
verify_image_cache.test_name = f"test_{safe}"
# import the example module
module = importlib.import_module(f"geovista.examples.{example}")
# if necessary, download and cache missing example base image (expected) to
# compare with the actual test image generated via pytest-pyvista plugin
if verify_image_cache.add_missing_images is False:
_ = CACHE.fetch(f"tests/images/{safe}.png")
# execute the example module for image testing
module.main()

0 comments on commit fa659bc

Please sign in to comment.