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

Function _assembler

tests/test_context_assembler_view.py:22–28  ·  view source on GitHub ↗

Build an assembler sufficient for the context helpers under test. The helpers we target (_build_self_section, _build_working_summary) don't touch memory / store directly, so mocks are enough.

()

Source from the content-addressed store, hash-verified

20
21
22def _assembler() -> ContextAssembler:
23 """Build an assembler sufficient for the context helpers under test.
24
25 The helpers we target (_build_self_section, _build_working_summary)
26 don't touch memory / store directly, so mocks are enough.
27 """
28 return ContextAssembler(memory=MagicMock(), store=None)
29
30
31def _wi(metadata: dict | None = None) -> SimpleNamespace:

Calls 1

ContextAssemblerClass · 0.90

Tested by

no test coverage detected