MCPcopy
hub / github.com/mitmproxy/mitmproxy / tctx

Function tctx

test/mitmproxy/proxy/conftest.py:13–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12@pytest.fixture
13def tctx() -> context.Context:
14 opts = options.Options()
15 Proxyserver().load(opts)
16 return context.Context(
17 connection.Client(
18 peername=("client", 1234),
19 sockname=("127.0.0.1", 8080),
20 timestamp_start=1605699329,
21 state=connection.ConnectionState.OPEN,
22 ),
23 opts,
24 )
25
26
27settings.register_profile("fast", max_examples=10, deadline=None)

Callers

nothing calls this directly

Calls 2

ProxyserverClass · 0.90
loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…