MCPcopy Create free account
hub / github.com/HKUDS/OpenOPC / _ui_engine

Function _ui_engine

tests/test_parallel_runtime_isolation.py:66–79  ·  view source on GitHub ↗
(project_id: str, store: _MemoryStore)

Source from the content-addressed store, hash-verified

64
65
66def _ui_engine(project_id: str, store: _MemoryStore) -> SimpleNamespace:
67 return SimpleNamespace(
68 project_id=project_id,
69 opc_home=Path(tempfile.gettempdir()),
70 store=store,
71 memory=None,
72 escalation=None,
73 company_executor=None,
74 reorg_manager=None,
75 event_bus=None,
76 process_message=AsyncMock(return_value="ok"),
77 get_latest_pending_checkpoint_for_session=AsyncMock(return_value=None),
78 _ensure_attachment_store=MagicMock(),
79 )
80
81
82class _FakeWS:

Calls

no outgoing calls

Tested by

no test coverage detected