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

Function test_config

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

Source from the content-addressed store, hash-verified

29
30
31def test_config(tmpdir):
32 s = serverplayback.ServerPlayback()
33 with taddons.context(s) as tctx:
34 fpath = str(tmpdir.join("flows"))
35 tdump(fpath, [tflow.tflow(resp=True)])
36 tctx.configure(s, server_replay=[fpath])
37 s.configured = False
38 with pytest.raises(exceptions.OptionsError):
39 tctx.configure(s, server_replay=[str(tmpdir)])
40
41
42def test_server_playback():

Callers

nothing calls this directly

Calls 4

contextMethod · 0.80
tdumpFunction · 0.70
joinMethod · 0.45
configureMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…