_checkbox wraps questionary.checkbox and returns the selected values.
(monkeypatch)
| 371 | |
| 372 | |
| 373 | def test_checkbox(monkeypatch): |
| 374 | """_checkbox wraps questionary.checkbox and returns the selected values.""" |
| 375 | |
| 376 | class _Fake: |
| 377 | def ask(self): |
| 378 | return ["a"] |
| 379 | |
| 380 | monkeypatch.setattr("semble.installer.installer.questionary.checkbox", lambda *_, **__: _Fake()) |
| 381 | assert _checkbox("Pick:", [("Option A", "a", False)]) == ["a"] |
| 382 | |
| 383 | |
| 384 | def test_print_plan(capsys, claude_agent): |