MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_sync_signal_async_receiver

Function test_sync_signal_async_receiver

test/mitmproxy/utils/test_signals.py:58–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def test_sync_signal_async_receiver() -> None:
59 s = SyncSignal(lambda: None)
60
61 with pytest.raises(AssertionError):
62 s.connect(mock.AsyncMock())
63
64
65async def test_async_signal() -> None:

Callers

nothing calls this directly

Calls 2

SyncSignalFunction · 0.90
connectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…