MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_update_flow_content

Method test_update_flow_content

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

Source from the content-addressed store, hash-verified

315 f.revert()
316
317 def test_update_flow_content(self):
318 assert (
319 self.fetch("/flows/42/request/content.data", method="POST", body="new").code
320 == 200
321 )
322 f = self.view.get_by_id("42")
323 assert f.request.content == b"new"
324 assert f.modified()
325 f.revert()
326
327 def test_update_flow_content_multipart(self):
328 body = (

Callers

nothing calls this directly

Calls 4

fetchMethod · 0.95
get_by_idMethod · 0.80
modifiedMethod · 0.80
revertMethod · 0.45

Tested by

no test coverage detected