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

Function test_async_mocked_async_function

tests/test__utils.py:91–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90
91def test_async_mocked_async_function() -> None:
92 async def async_func() -> None: ... # pragma: no cover
93
94 mock = create_autospec(async_func)
95 assert is_async_callable(mock)
96
97
98@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

is_async_callableFunction · 0.90

Tested by

no test coverage detected