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

Function snapshotter

tests/unit/_autoscaling/test_snapshotter.py:56–60  ·  view source on GitHub ↗
(event_manager: LocalEventManager)

Source from the content-addressed store, hash-verified

54
55@pytest.fixture
56async def snapshotter(event_manager: LocalEventManager) -> AsyncGenerator[Snapshotter, None]:
57 config = Configuration(available_memory_ratio=0.25)
58 service_locator.set_event_manager(event_manager)
59 async with Snapshotter.from_config(config) as snapshotter:
60 yield snapshotter
61
62
63@pytest.fixture

Callers

nothing calls this directly

Calls 3

ConfigurationClass · 0.90
set_event_managerMethod · 0.80
from_configMethod · 0.45

Tested by

no test coverage detected