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

Function test_custom_storage_client

tests/unit/test_service_locator.py:76–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75
76def test_custom_storage_client() -> None:
77 custom_storage_client = MemoryStorageClient()
78 service_locator.set_storage_client(custom_storage_client)
79 storage_client = service_locator.get_storage_client()
80 assert storage_client is custom_storage_client
81
82
83def test_storage_client_overwrite_not_possible() -> None:

Callers

nothing calls this directly

Calls 3

MemoryStorageClientClass · 0.90
set_storage_clientMethod · 0.80
get_storage_clientMethod · 0.80

Tested by

no test coverage detected