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

Method test_events

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

Source from the content-addressed store, hash-verified

397 assert get_json(resp) == {"value": []}
398
399 def test_events(self):
400 resp = self.fetch("/events")
401 assert resp.code == 200
402 assert get_json(resp)[0]["level"] == "info"
403
404 def test_options(self):
405 j = get_json(self.fetch("/options"))

Callers

nothing calls this directly

Calls 2

fetchMethod · 0.95
get_jsonFunction · 0.70

Tested by

no test coverage detected