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

Method test_flow_delete

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

Source from the content-addressed store, hash-verified

183 f.revert()
184
185 def test_flow_delete(self):
186 f = self.view.get_by_id("42")
187 assert f
188
189 assert self.fetch("/flows/42", method="DELETE").code == 200
190
191 assert not self.view.get_by_id("42")
192 self.view.add([f])
193
194 assert self.fetch("/flows/1234", method="DELETE").code == 404
195
196 def test_flow_update(self):
197 f = self.view.get_by_id("42")

Callers

nothing calls this directly

Calls 3

fetchMethod · 0.95
get_by_idMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected