(copy_env)
| 265 | |
| 266 | |
| 267 | async 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 | |
| 281 | async def test_picker_block_copy(copy_env): |
nothing calls this directly
no test coverage detected