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

Function handler

tests/unit/test_router.py:111–112  ·  view source on GitHub ↗
(_context: MockContext)

Source from the content-addressed store, hash-verified

109 @router.handler('A')
110 @router.handler('B')
111 async def handler(_context: MockContext) -> None:
112 mock_handler(_context.request.label)
113
114 await router(MockContext(label='A'))
115 mock_handler.assert_called_with('A')

Callers 4

SessionPoolModelClass · 0.50
_timedelta_from_msFunction · 0.50
_timedelta_from_secsFunction · 0.50
wrapped_handlerMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected