Plotting tests are used as regression tests for plotting features. They can be run locally (see below) and are also run on CI.
You have to install pytest-mpl
to run the plotting tests.
Make sure your local version of matplotlib
and seaborn
are the same as on CI.
seaborn
can override default matplotlib
style sheets, and thus both need to be the
same version.
pytest --mpl-generate-path=expected_figs test_plotting.py
pytest --mpl