MCPcopy
hub / github.com/aio-libs/aiohttp / test_non_coroutine

Function test_non_coroutine

tests/test_signals.py:103–112  ·  view source on GitHub ↗
(loop, app)

Source from the content-addressed store, hash-verified

101
102
103def test_non_coroutine(loop, app):
104 signal = Signal(app)
105 kwargs = {'foo': 1, 'bar': 2}
106
107 callback = mock.Mock()
108
109 signal.append(callback)
110
111 loop.run_until_complete(signal.send(**kwargs))
112 callback.assert_called_once_with(**kwargs)
113
114
115def test_copy_forbidden(app):

Callers

nothing calls this directly

Calls 3

sendMethod · 0.95
SignalClass · 0.90
appendMethod · 0.80

Tested by

no test coverage detected