Skip to content

Commit f43443e

Browse files
Apply suggestions from code review
1 parent fe4f4e3 commit f43443e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pytest_mpl/plugin.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,12 @@ def pytest_configure(config):
205205
results_dir = os.path.abspath(results_dir)
206206

207207
default_style = (config.getoption("--mpl-default-style") or
208-
config.getini("mpl-default-style"))
208+
config.getini("mpl-default-style") or
209+
"classic")
209210

210-
default_tolerance = (config.getoption("--mpl-default-tolerance") or
211-
config.getini("mpl-default-tolerance"))
211+
default_tolerance = float(config.getoption("--mpl-default-tolerance") or
212+
config.getini("mpl-default-tolerance") or
213+
"2")
212214

213215
config.pluginmanager.register(ImageComparison(config,
214216
baseline_dir=baseline_dir,

0 commit comments

Comments
 (0)