mardi 30 août 2016

Terminal mock for unit-testing python curses programs?

I am writing an interactive terminal program using Python curses. I'd like to write unit tests for its functionalities such as drawing custom pads, controlling font colors, scrolling, and resizing responses. But after some tries and searches, I couldn't find a way to write such unit tests without actually invoking the terminal; I couldn't find a function in curses to read the content of the screen, either.

Is there a mock terminal for Python curses that serves these unit testing needs?

Aucun commentaire:

Enregistrer un commentaire