python unit test - how to mock class instances or methods

前端 未结 0 916
野性不改
野性不改 2021-02-04 13:38

I am trying to test the method calculate which is getting data from instance of another class in a different module. How can I mock this. I am new to unit testi

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