MCPcopy Create free account
hub / github.com/apify/crawlee-python / test_init

Function test_init

tests/unit/_utils/test_recurring_task.py:24–28  ·  view source on GitHub ↗
(function: AsyncMock, delay: timedelta)

Source from the content-addressed store, hash-verified

22
23
24async def test_init(function: AsyncMock, delay: timedelta) -> None:
25 rt = RecurringTask(function, delay)
26 assert rt.func == function
27 assert rt.delay == delay
28 assert rt.task is None
29
30
31async def test_start_and_stop(function: AsyncMock, delay: timedelta) -> None:

Callers

nothing calls this directly

Calls 1

RecurringTaskClass · 0.90

Tested by

no test coverage detected