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

Function test_storage_client_conflict

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

Source from the content-addressed store, hash-verified

90
91
92def test_storage_client_conflict() -> None:
93 service_locator.get_storage_client()
94 custom_storage_client = MemoryStorageClient()
95
96 with pytest.raises(ServiceConflictError, match=r'StorageClient is already in use.'):
97 service_locator.set_storage_client(custom_storage_client)

Callers

nothing calls this directly

Calls 3

MemoryStorageClientClass · 0.90
get_storage_clientMethod · 0.80
set_storage_clientMethod · 0.80

Tested by

no test coverage detected