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

前端 未结 0 1538
一生所求
一生所求 2021-02-15 05:45

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

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