Fix default value of 'enable_assertion_pass_hook'
This commit is contained in:
parent
6854ff2acc
commit
eb90f3d1c8
|
@ -26,7 +26,7 @@ def pytest_addoption(parser):
|
|||
parser.addini(
|
||||
"enable_assertion_pass_hook",
|
||||
type="bool",
|
||||
default="False",
|
||||
default=False,
|
||||
help="Enables the pytest_assertion_pass hook."
|
||||
"Make sure to delete any previously generated pyc cache files.",
|
||||
)
|
||||
|
|
|
@ -1335,6 +1335,10 @@ class TestEarlyRewriteBailout:
|
|||
|
||||
|
||||
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):
|
||||
testdir.makeconftest(
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue