@@ -456,7 +456,6 @@ def max_vtksz_file_size(request: pytest.FixtureRequest) -> _VtkszFileSizeTestCas
456456def test_images (_pytest_pyvista_test_case : _DocVerifyImageCache , doc_verify_image_cache : _DocVerifyImageCache ) -> None : # noqa: PT019, ARG001
457457 """Compare generated image with cached image."""
458458 test_case = _pytest_pyvista_test_case
459- _warn_cached_image_path (test_case .cached_image_path )
460459 fail_msg , fail_source = _test_both_images_exist (
461460 filename = test_case .test_name , docs_image_path = test_case .test_image_path , cached_image_path = test_case .cached_image_path
462461 )
@@ -550,21 +549,6 @@ def has_no_images(path: Path | None) -> bool:
550549 return None , None
551550
552551
553- def _warn_cached_image_path (cached_image_path : Path | None ) -> None :
554- """Warn if a subdir is used with only one cached image."""
555- if cached_image_path is not None and cached_image_path .is_dir ():
556- cached_images = _get_file_paths (cached_image_path , ext = _DocVerifyImageCache .image_format )
557- if len (cached_images ) == 1 :
558- cache_dir = _DocVerifyImageCache .image_cache_dir
559- rel_path = cache_dir .name / cached_images [0 ].relative_to (cache_dir )
560- msg = (
561- "Cached image sub-directory only contains a single image.\n "
562- f"Move the cached image { rel_path .as_posix ()!r} directly to the cached image dir { cache_dir .name !r} \n "
563- f"or include more than one image in the sub-directory."
564- )
565- warnings .warn (msg , stacklevel = 2 )
566-
567-
568552def test_vtksz_file_size (_pytest_pyvista_test_case_vtksz : _VtkszFileSizeTestCase , max_vtksz_file_size : _VtkszFileSizeTestCase ) -> None : # noqa: PT019, ARG001
569553 """Test vtksz file size is less than max allowed."""
570554 test_case = _pytest_pyvista_test_case_vtksz
0 commit comments