MCPcopy Create free account
hub / github.com/pytest-dev/pytest / raise_on_assertionpass

Method raise_on_assertionpass

testing/test_assertrewrite.py:1549–1550  ·  view source on GitHub ↗
(*_, **__)

Source from the content-addressed store, hash-verified

1547 not occur) if there is no hook declared for pytest_assertion_pass"""
1548
1549 def raise_on_assertionpass(*_, **__):
1550 raise Exception("Assertion passed called when it shouldn't!")
1551
1552 monkeypatch.setattr(
1553 _pytest.assertion.rewrite, "_call_assertion_pass", raise_on_assertionpass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected