MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_unfinished

Function test_unfinished

test/mitmproxy/proxy/test_tutils.py:100–106  ·  view source on GitHub ↗

We show a warning when playbooks aren't asserted.

(tplaybook)

Source from the content-addressed store, hash-verified

98
99
100def test_unfinished(tplaybook):
101 """We show a warning when playbooks aren't asserted."""
102 tplaybook >> TEvent()
103 with pytest.raises(RuntimeError, match="Unfinished playbook"):
104 tplaybook.__del__()
105 tplaybook._errored = True
106 tplaybook.__del__()
107
108
109def test_command_reply(tplaybook):

Callers

nothing calls this directly

Calls 2

TEventClass · 0.85
__del__Method · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…