MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_flows

Method test_flows

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

Source from the content-addressed store, hash-verified

130 assert resp.headers.get("Content-Type") == "text/javascript"
131
132 def test_flows(self):
133 resp = self.fetch("/flows")
134 assert resp.code == 200
135 assert get_json(resp)[0]["request"]["contentHash"]
136 assert get_json(resp)[2]["error"]
137
138 def test_flows_dump(self):
139 resp = self.fetch("/flows/dump")

Callers

nothing calls this directly

Calls 2

fetchMethod · 0.95
get_jsonFunction · 0.70

Tested by

no test coverage detected