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

Function test_save_flows

test/mitmproxy/tools/web/test_static_viewer.py:34–40  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

32
33
34def test_save_flows(tmpdir):
35 flows = [tflow.tflow(resp=False), tflow.tflow(resp=True)]
36 static_viewer.save_flows(tmpdir, flows)
37 assert tmpdir.join("flows.json").check(file=1)
38 assert tmpdir.join("flows.json").read() == json.dumps(
39 [flow_to_json(f) for f in flows]
40 )
41
42
43def test_save_flows_content(tmpdir):

Callers

nothing calls this directly

Calls 5

flow_to_jsonFunction · 0.90
checkMethod · 0.80
dumpsMethod · 0.80
joinMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…