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 468f1d0 commit aff008dCopy full SHA for aff008d
testinfra/plugin.py
@@ -184,12 +184,12 @@ def write(self, s):
184
185
@pytest.mark.trylast
186
def pytest_configure(config):
187
- if config.option.verbose > 1:
+ if config.getoption("--verbose", 0) > 1:
188
root = logging.getLogger()
189
if not root.handlers:
190
root.addHandler(logging.NullHandler())
191
logging.getLogger("testinfra").setLevel(logging.DEBUG)
192
- if config.option.nagios:
+ if config.getoption("--nagios"):
193
# disable & re-enable terminalreporter to write in a tempfile
194
reporter = config.pluginmanager.getplugin("terminalreporter")
195
if reporter:
0 commit comments