MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_flow_duplicate

Method test_flow_duplicate

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

Source from the content-addressed store, hash-verified

255 )
256
257 def test_flow_duplicate(self):
258 resp = self.fetch("/flows/42/duplicate", method="POST")
259 assert resp.code == 200
260 f = self.view.get_by_id(resp.body.decode())
261 assert f
262 assert f.id != "42"
263 self.view.remove([f])
264
265 def test_flow_revert(self):
266 f = self.view.get_by_id("42")

Callers

nothing calls this directly

Calls 4

fetchMethod · 0.95
get_by_idMethod · 0.80
decodeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected