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

Method test_commands

test/mitmproxy/tools/web/test_app.py:386–389  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

384 ]
385
386 def test_commands(self):
387 resp = self.fetch("/commands")
388 assert resp.code == 200
389 assert get_json(resp)["set"]["help"]
390
391 def test_command_execute(self):
392 resp = self.fetch("/commands/unknown", method="POST")

Callers

nothing calls this directly

Calls 2

fetchMethod · 0.95
get_jsonFunction · 0.70

Tested by

no test coverage detected