Exemplo n.º 1
0
async def mocked_log_publishing_cb(
    event_loop: asyncio.AbstractEventLoop,
    mocker: MockerFixture,
) -> AsyncIterable[mock.AsyncMock]:
    async with mocker.AsyncMock() as mocked_callback:
        yield mocked_callback
Exemplo n.º 2
0
async def mocked_user_completed_cb(mocker: MockerFixture) -> mock.AsyncMock:
    return mocker.AsyncMock()