MCPcopy
hub / github.com/piccolo-orm/piccolo / test_sync_nested

Method test_sync_nested

tests/utils/test_sync.py:14–22  ·  view source on GitHub ↗

Test calling a coroutine, which contains a call to `run_sync`.

(self)

Source from the content-addressed store, hash-verified

12 run_sync(asyncio.sleep(0.1))
13
14 def test_sync_nested(self):
15 """
16 Test calling a coroutine, which contains a call to `run_sync`.
17 """
18
19 async def test():
20 run_sync(asyncio.sleep(0.1))
21
22 run_sync(test())
23
24 def test_sync_stopped_event_loop(self):
25 """

Callers

nothing calls this directly

Calls 1

run_syncFunction · 0.90

Tested by

no test coverage detected