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(
|
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.",
|
||||||
)
|
)
|
||||||
|
|
|
@ -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(
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue