Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorMacBride authored May 20, 2023
1 parent fe4f4e3 commit f43443e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pytest_mpl/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,12 @@ def pytest_configure(config):
results_dir = os.path.abspath(results_dir)

default_style = (config.getoption("--mpl-default-style") or
config.getini("mpl-default-style"))
config.getini("mpl-default-style") or
"classic")

default_tolerance = (config.getoption("--mpl-default-tolerance") or
config.getini("mpl-default-tolerance"))
default_tolerance = float(config.getoption("--mpl-default-tolerance") or
config.getini("mpl-default-tolerance") or
"2")

config.pluginmanager.register(ImageComparison(config,
baseline_dir=baseline_dir,
Expand Down

0 comments on commit f43443e

Please sign in to comment.