Skip to content

Commit 455f167

Browse files
committed
Register mpl_image_compare marker
1 parent bafd3d0 commit 455f167

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)