Fix default value of 'enable_assertion_pass_hook'

This commit is contained in:
Bruno Oliveira 2019-06-26 17:54:24 -03:00
parent 6854ff2acc
commit eb90f3d1c8
2 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def pytest_addoption(parser):
parser.addini( parser.addini(
"enable_assertion_pass_hook", "enable_assertion_pass_hook",
type="bool", type="bool",
default="False", default=False,
help="Enables the pytest_assertion_pass hook." help="Enables the pytest_assertion_pass hook."
"Make sure to delete any previously generated pyc cache files.", "Make sure to delete any previously generated pyc cache files.",
) )

View File

@ -1335,6 +1335,10 @@ class TestEarlyRewriteBailout:
class TestAssertionPass: class TestAssertionPass:
def test_option_default(self, testdir):
config = testdir.parseconfig()
assert config.getini("enable_assertion_pass_hook") is False
def test_hook_call(self, testdir): def test_hook_call(self, testdir):
testdir.makeconftest( testdir.makeconftest(
""" """