MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / fake_event_wait

Method fake_event_wait

tests/async/test_server.py:188–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186 s = async_server.AsyncServer(client_manager=mgr)
187
188 async def fake_event_wait():
189 s.manager.emit.await_args_list[0][1]['callback']('foo', 321)
190 return True
191
192 s.eio.create_event.return_value.wait = fake_event_wait
193 assert await s.call('foo', sid='123') == ('foo', 321)

Callers

nothing calls this directly

Calls 1

sleepMethod · 0.45

Tested by

no test coverage detected