MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_flow_revert

Method test_flow_revert

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

Source from the content-addressed store, hash-verified

263 self.view.remove([f])
264
265 def test_flow_revert(self):
266 f = self.view.get_by_id("42")
267 f.backup()
268 f.request.method = "PATCH"
269 self.fetch("/flows/42/revert", method="POST")
270 assert not f._backup
271
272 def test_flow_replay(self):
273 with mock.patch("mitmproxy.command.CommandManager.call") as replay_call:

Callers

nothing calls this directly

Calls 3

fetchMethod · 0.95
get_by_idMethod · 0.80
backupMethod · 0.80

Tested by

no test coverage detected