Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test-level option to choose image name for comparison #109

Open
MatthewFlamm opened this issue Jan 4, 2024 · 0 comments
Open

Add test-level option to choose image name for comparison #109

MatthewFlamm opened this issue Jan 4, 2024 · 0 comments

Comments

@MatthewFlamm
Copy link
Contributor

This would enable reducing duplicate images in tests. For example, tests in pyvista/pyvista#5428 generate multiple images that are duplicates of one another. It could be something like:

def test_identical_images(verify_image_cache):
    verify_image_cache.file_compare = "identical_images"
    # generate image with first plot and compare to "identical_images.png"
    verify_image_cache.file_compare = "identical_images"
    # generate image with second plot and compare to same "identical_images.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant