Pytest with argparse: how to test user is prompted for confirmation?

前端 未结 0 500
执笔经年
执笔经年 2021-02-15 05:54

I have a CLI tool, and would like to test that the user is prompted to confirm a choice using input(). This would be equivalent as using raw_input() in

相关标签:
回答
  • 消灭零回复
提交回复
热议问题