Is it okay to copy a class method and test its behavior by mocking the class and dependencies in unit tests?

后端 未结 0 1210
南笙
南笙 2021-01-31 17:47

Or I need mock all other methods and dependencies(huge amount) in the class by using @patch, and test through a class call(call method cls.execute() in my service)?

Simpl

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