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

Function test_picker_sets_level

tests/test_effort_command.py:254–264  ·  view source on GitHub ↗
(isolated_settings, monkeypatch)

Source from the content-addressed store, hash-verified

252# D. Picker happy path
253# --------------------------------------------------------------------------- #
254async def test_picker_sets_level(isolated_settings, monkeypatch):
255 monkeypatch.setenv("CLAUDE_CODE_DISABLE_WORKFLOWS", "1") # base picker (no ultracode option)
256 tmp_path = isolated_settings
257 ui = FakeUIHost(pick="low")
258 out = await EFFORT_COMMAND.run("", _ctx(tmp_path, ui=ui))
259 assert isinstance(out, InteractiveOutcome)
260 assert out.message == f"Set effort level to low: {_LOW_DESC}"
261 assert out.display == "user"
262 assert out.should_query is False
263 assert _persisted_effort() == "low"
264 assert ui.select_calls[0]["values"] == _EXPECTED_OPTION_VALUES
265
266
267async def test_picker_auto_uses_picker_message(isolated_settings):

Callers

nothing calls this directly

Calls 4

_persisted_effortFunction · 0.85
FakeUIHostClass · 0.70
_ctxFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected