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

Class _Fake

tests/test_installer.py:376–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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"]

Callers 1

test_checkboxFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_checkboxFunction · 0.68