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

Function service_locator

tests/unit/test_throttling_request_manager.py:31–33  ·  view source on GitHub ↗

Create a ServiceLocator with MemoryStorageClient for testing.

(memory_storage_client: MemoryStorageClient)

Source from the content-addressed store, hash-verified

29
30@pytest.fixture
31def service_locator(memory_storage_client: MemoryStorageClient) -> ServiceLocator:
32 """Create a ServiceLocator with MemoryStorageClient for testing."""
33 return ServiceLocator(storage_client=memory_storage_client)
34
35
36@pytest.fixture

Callers

nothing calls this directly

Calls 1

ServiceLocatorClass · 0.90

Tested by

no test coverage detected