We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe4f4e3 commit f43443eCopy full SHA for f43443e
pytest_mpl/plugin.py
@@ -205,10 +205,12 @@ def pytest_configure(config):
205
results_dir = os.path.abspath(results_dir)
206
207
default_style = (config.getoption("--mpl-default-style") or
208
- config.getini("mpl-default-style"))
+ config.getini("mpl-default-style") or
209
+ "classic")
210
- default_tolerance = (config.getoption("--mpl-default-tolerance") or
211
- config.getini("mpl-default-tolerance"))
+ default_tolerance = float(config.getoption("--mpl-default-tolerance") or
212
+ config.getini("mpl-default-tolerance") or
213
+ "2")
214
215
config.pluginmanager.register(ImageComparison(config,
216
baseline_dir=baseline_dir,
0 commit comments