Cover assertions with messages when enable_assertion_pass_hook is enabled
This commit is contained in:
parent
629eb3ec6a
commit
2ea22218ff
|
@ -1363,6 +1363,10 @@ class TestAssertionPass:
|
|||
d=0
|
||||
|
||||
assert a+b == c+d
|
||||
|
||||
# cover failing assertions with a message
|
||||
def test_fails():
|
||||
assert False, "assert with message"
|
||||
"""
|
||||
)
|
||||
result = testdir.runpytest()
|
||||
|
|
Loading…
Reference in New Issue