We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89abb18 commit 718308aCopy full SHA for 718308a
pytest_mpl/plugin.py
@@ -211,10 +211,12 @@ def pytest_configure(config):
211
results_dir = os.path.abspath(results_dir)
212
213
default_style = (config.getoption("--mpl-default-style") or
214
- config.getini("mpl-default-style"))
+ config.getini("mpl-default-style") or
215
+ "classic")
216
- default_tolerance = (config.getoption("--mpl-default-tolerance") or
217
- config.getini("mpl-default-tolerance"))
+ default_tolerance = float(config.getoption("--mpl-default-tolerance") or
218
+ config.getini("mpl-default-tolerance") or
219
+ "2")
220
221
config.pluginmanager.register(ImageComparison(config,
222
baseline_dir=baseline_dir,
0 commit comments