Cannot mock input in python 3

前端 未结 0 1735
南笙
南笙 2020-12-05 01:27

I have a class I am testing that uses input, and unittest\'s mock.patch does not seem to work for me when mocking builtins.input.

I still get the prompt for input. Th

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