MCPcopy
hub / github.com/encode/starlette / test_async_func

Function test_async_func

tests/test__utils.py:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def test_async_func() -> None:
16 async def async_func() -> None: ... # pragma: no cover
17
18 def func() -> None: ... # pragma: no cover
19
20 assert is_async_callable(async_func)
21 assert not is_async_callable(func)
22
23
24def test_async_partial() -> None:

Callers

nothing calls this directly

Calls 1

is_async_callableFunction · 0.90

Tested by

no test coverage detected