(isolated_settings, monkeypatch)
| 252 | # D. Picker happy path |
| 253 | # --------------------------------------------------------------------------- # |
| 254 | async 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 | |
| 267 | async def test_picker_auto_uses_picker_message(isolated_settings): |
nothing calls this directly
no test coverage detected