Why this matters
install_questionary_escape_cancel() patches multiple prompt types, but current tests only prove the select path.
Files to touch
tests/cli/test_prompt_support.py
Exactly what to do
- Follow the pattern already used for
questionary.select.
- Add one test each for
questionary.confirm, questionary.text, and questionary.path.
- Send the Escape key through
create_pipe_input().
- Assert the prompt returns
None instead of hanging or throwing.
Done when
- All patched prompt types used in
install_questionary_escape_cancel() have at least one Escape-cancel test
- No production code changes are needed unless the test exposes a real bug
Verify
python -m pytest tests/cli/test_prompt_support.py -q
Why this matters
install_questionary_escape_cancel()patches multiple prompt types, but current tests only prove theselectpath.Files to touch
tests/cli/test_prompt_support.pyExactly what to do
questionary.select.questionary.confirm,questionary.text, andquestionary.path.create_pipe_input().Noneinstead of hanging or throwing.Done when
install_questionary_escape_cancel()have at least one Escape-cancel testVerify