Skip to content

Add Escape-cancel coverage for confirm, text, and path prompts #1117

@VaibhavUpreti

Description

@VaibhavUpreti

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

  1. Follow the pattern already used for questionary.select.
  2. Add one test each for questionary.confirm, questionary.text, and questionary.path.
  3. Send the Escape key through create_pipe_input().
  4. 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

Metadata

Metadata

Assignees

Labels

cliCommand-line interface workgood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions