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

Function test_configure

test/mitmproxy/addons/test_clientplayback.py:221–234  ·  view source on GitHub ↗
(tdata)

Source from the content-addressed store, hash-verified

219
220
221def test_configure(tdata):
222 cp = ClientPlayback()
223 with taddons.context(cp) as tctx:
224 assert cp.count() == 0
225 tctx.configure(
226 cp, client_replay=[tdata.path("mitmproxy/data/dumpfile-018.mitm")]
227 )
228 assert cp.count() == 1
229 tctx.configure(cp, client_replay=[])
230 with pytest.raises(OptionsError):
231 tctx.configure(cp, client_replay=["nonexistent"])
232 tctx.configure(cp, client_replay_concurrency=-1)
233 with pytest.raises(OptionsError):
234 tctx.configure(cp, client_replay_concurrency=-2)

Callers

nothing calls this directly

Calls 5

countMethod · 0.95
ClientPlaybackClass · 0.90
contextMethod · 0.80
configureMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…