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

Reorganize the pytest-mpl reference images #61

Closed
janssenhenning opened this issue Jul 22, 2021 · 0 comments
Closed

Reorganize the pytest-mpl reference images #61

janssenhenning opened this issue Jul 22, 2021 · 0 comments
Labels
maintenance visualization Related to the visualization routines

Comments

@janssenhenning
Copy link
Contributor

janssenhenning commented Jul 22, 2021

At the moment updating the pytest-mpl baseline images is a real pain, since we have multiple different directories with baseline images with similar names and pytest-mpl can only generate baseline images in one flat folder, where images with the same name simply overwrite each other

The easiest solution would be to move the test functions outside of classes and put the plot function name in the test function name. Then we can define one baseline directory and use the standard @pytest.mark.mpl_image_compare without options to generate the images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance visualization Related to the visualization routines
Projects
None yet
Development

No branches or pull requests

1 participant