Cover assertions with messages when enable_assertion_pass_hook is enabled
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user