Skip to content

Commit 882dbba

Browse files
authored
Properly trigger pytest matplotlib image comparison (#352)
Adding the `--mpl` flag and saving the failed results under $TESTDIR/results as per https://github.com/matplotlib/pytest-mpl/blob/954073d458ab4d96796c67d6aeb994d17ee39817/README.rst#using. Update baseline images for grdcontour (5), grdimage (3), logo (2), coast (4), image (1), makecpt (9), basemap(4) and plot(8). Corrected one of the basemap tests that had plotted 'Depth' instead of 'Crustal Age' on the power x-axis label.
1 parent ca9d05f commit 882dbba

38 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Build, package, test, and clean
22
PROJECT=pygmt
33
TESTDIR=tmp-test-dir-with-unique-name
4-
PYTEST_ARGS=--cov-config=../.coveragerc --cov-report=term-missing --cov=$(PROJECT) --doctest-modules -v --pyargs
4+
PYTEST_ARGS=--cov-config=../.coveragerc --cov-report=term-missing --cov=$(PROJECT) --doctest-modules -v --mpl --mpl-results-path=results --pyargs
55
BLACK_FILES=$(PROJECT) setup.py doc/conf.py examples
66
FLAKE8_FILES=$(PROJECT) setup.py
77
LINT_FILES=$(PROJECT) setup.py
281 Bytes
Loading
-1.67 KB
Loading
16.7 KB
Loading
333 Bytes
Loading

pygmt/tests/baseline/test_coast.png

-783 Bytes
Loading
-665 Bytes
Loading
27 Bytes
Loading
1.58 KB
Loading
1.45 KB
Loading

0 commit comments

Comments
 (0)