how to test?
Author: yajoCreated Sep 13, 2020Updated Apr 27, 2026
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.
Source: prompt-toolkit/python-prompt-toolkit