Skip to content

Commit 1e3df0e

Browse files
authored
Merge pull request #83 from astrofrog/register-marker
Register mpl_image_compare marker
2 parents bafd3d0 + be9183e commit 1e3df0e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
- Improve error message if image shapes don't match. [#79]
55

6+
- Properly register mpl_image_compare marker with pytest. [#83]
7+
68
0.10 (2018-09-25)
79
-----------------
810

pytest_mpl/plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ def pytest_addoption(parser):
104104

105105
def pytest_configure(config):
106106

107+
config.addinivalue_line('markers', "mpl_image_compare: Compares matplotlib figures against a baseline image")
108+
107109
if config.getoption("--mpl") or config.getoption("--mpl-generate-path") is not None:
108110

109111
baseline_dir = config.getoption("--mpl-baseline-path")

0 commit comments

Comments
 (0)