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 committed May 20, 2023
1 parent 89abb18 commit 718308a
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 @@ -211,10 +211,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 718308a

Please sign in to comment.