I have a console program written in Python. I would like to test several input combinations in an automatic test routine. The input is read via Pythons input(...)
function.
- How can I emulate a keyboard or any other input stream to send single characters or strings to
input
? - Or do I need to replace input by another function, which is connected to my test cases?
Aucun commentaire:
Enregistrer un commentaire