MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_command

Function test_command

test/mitmproxy/test_addonmanager.py:67–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66
67def test_command():
68 with taddons.context() as tctx:
69 tctx.master.addons.add(TAddon("test"))
70 assert tctx.master.commands.execute("test.command") == "here"
71
72
73async def test_halt():

Callers

nothing calls this directly

Calls 4

contextMethod · 0.80
executeMethod · 0.80
TAddonClass · 0.70
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…