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

Function test_event_manager_conflict

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

Source from the content-addressed store, hash-verified

61
62
63def test_event_manager_conflict() -> None:
64 service_locator.get_event_manager()
65 custom_event_manager = LocalEventManager()
66
67 with pytest.raises(ServiceConflictError, match=r'EventManager is already in use.'):
68 service_locator.set_event_manager(custom_event_manager)
69
70
71def test_default_storage_client() -> None:

Callers

nothing calls this directly

Calls 3

LocalEventManagerClass · 0.90
get_event_managerMethod · 0.80
set_event_managerMethod · 0.80

Tested by

no test coverage detected