MCPcopy Index your code
hub / github.com/MinishLab/semble / test_checkbox

Function test_checkbox

tests/test_installer.py:373–381  ·  view source on GitHub ↗

_checkbox wraps questionary.checkbox and returns the selected values.

(monkeypatch)

Source from the content-addressed store, hash-verified

371
372
373def 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
384def test_print_plan(capsys, claude_agent):

Callers

nothing calls this directly

Calls 2

_checkboxFunction · 0.90
_FakeClass · 0.85

Tested by

no test coverage detected