I am building a TUI application which I want to run unittests on. I have made a python script which runs the TUI, gives all key inputs, exits and returns the result. The script works perfectly when ran in terminal.
Trying to run it with pytest gives errors, probably because it is not providing a terminal with a "display". Is there any tips for running a curses app in a subprocess and asserting on the stdout or something?
2.1m questions
2.1m answers
60 comments
57.0k users