MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / test_start_hook

Function test_start_hook

test/mitmproxy/proxy/test_commands.py:24–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def test_start_hook():
25 with pytest.raises(TypeError):
26 commands.StartHook()
27
28 @dataclass
29 class TestHook(commands.StartHook):
30 data: bytes
31
32 f = TestHook(b"foo")
33 assert f.args() == [b"foo"]
34 assert TestHook in all_hooks.values()

Callers

nothing calls this directly

Calls 3

TestHookClass · 0.85
argsMethod · 0.80
valuesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…