prompt-toolkit / prompt-toolkit/python-prompt-toolkit

how to test?

Open
#1,243 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.6k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

I've been trying to use this library but it breaks my tests.

I build a CLI app that asks for some questions to the user. Some uni t tests emulate some content in the STDIN to check the user interaction works as expected. But doing it with thi s library fails.

How are we supposed to test user interactions when using this library? I don't find that on the docs.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No specific file or test is named. Start by locating the library documentation and testing entry points related to interactive CLI input, then document how user interactions can be emulated in unit tests and verify the guidance with a representative test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.