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

Function test_load_file

test/mitmproxy/addons/test_serverplayback.py:20–28  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

18
19
20def test_load_file(tmpdir):
21 s = serverplayback.ServerPlayback()
22 with taddons.context(s):
23 fpath = str(tmpdir.join("flows"))
24 tdump(fpath, [tflow.tflow(resp=True)])
25 s.load_file(fpath)
26 assert s.flowmap
27 with pytest.raises(exceptions.CommandError):
28 s.load_file("/nonexistent")
29
30
31def test_config(tmpdir):

Callers

nothing calls this directly

Calls 4

load_fileMethod · 0.95
contextMethod · 0.80
tdumpFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…