How to test Python readline completion?

前端 未结 4 1226
借酒劲吻你
借酒劲吻你 2021-02-19 13:25

I\'m writing a command-line interface in Python. It uses the readline module to provide command history and completion.

While everything works fine in interactive mode,

4条回答
  •  孤独总比滥情好
    2021-02-19 14:13

    You can try using Sikuli to test the end-user interaction with your application.

    However, this is a complete overkill, requires a lot of extra dependencies, will work slowly, and will fail if the terminal font/colors change. But, still, you will be able to test actual user interaction.

    The documentation homepage links to a slideshow and a FAQ question about writing tests using Sikuli.

提交回复
热议问题