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

Function test_async_nested_partial

tests/test__utils.py:80–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79
80def test_async_nested_partial() -> None:
81 async def async_func(
82 a: Any,
83 b: Any,
84 ) -> None: ... # pragma: no cover
85
86 partial = functools.partial(async_func, b=2)
87 nested_partial = functools.partial(partial, a=1)
88 assert is_async_callable(nested_partial)
89
90
91def test_async_mocked_async_function() -> None:

Callers

nothing calls this directly

Calls 1

is_async_callableFunction · 0.90

Tested by

no test coverage detected