Skip to content

Commit 718308a

Browse files
committed
Apply suggestions from code review
1 parent 89abb18 commit 718308a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pytest_mpl/plugin.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,12 @@ def pytest_configure(config):
211211
results_dir = os.path.abspath(results_dir)
212212

213213
default_style = (config.getoption("--mpl-default-style") or
214-
config.getini("mpl-default-style"))
214+
config.getini("mpl-default-style") or
215+
"classic")
215216

216-
default_tolerance = (config.getoption("--mpl-default-tolerance") or
217-
config.getini("mpl-default-tolerance"))
217+
default_tolerance = float(config.getoption("--mpl-default-tolerance") or
218+
config.getini("mpl-default-tolerance") or
219+
"2")
218220

219221
config.pluginmanager.register(ImageComparison(config,
220222
baseline_dir=baseline_dir,

0 commit comments

Comments
 (0)