MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_picker_block_description_matrix

Function test_picker_block_description_matrix

tests/test_copy_command.py:267–278  ·  view source on GitHub ↗
(copy_env)

Source from the content-addressed store, hash-verified

265
266
267async def test_picker_block_description_matrix(copy_env):
268 # All four TS desc shapes: lang+multi, no-lang+multi, lang+1-line, no-lang+1-line (None).
269 md = (
270 "```python\na\nb\nc\n```\n" # python, 3 lines
271 "```\nx\ny\nz\n```\n" # 3 lines
272 "```js\none\n```\n" # js
273 "```\nlone\n```" # -> description None (TS `|| undefined`)
274 )
275 ui = FakeUIHost(pick="full")
276 await COPY_COMMAND.run("", _ctx(copy_env.tmp, [_msg("assistant", md)], ui=ui))
277 descs = ui.select_calls[0]["descriptions"][1:-1] # block options only
278 assert descs == ["python, 3 lines", "3 lines", "js", None]
279
280
281async def test_picker_block_copy(copy_env):

Callers

nothing calls this directly

Calls 4

FakeUIHostClass · 0.70
_ctxFunction · 0.70
_msgFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected