How to use Mock to replace an instance variable without a getter method in Pytest

后端 未结 0 550
梦毁少年i
梦毁少年i 2021-02-03 15:16

I am trying to write a test for a method of class "Process" like this:

[main.py]
class Process:
    def run(self):
        p = Print()
        if p.get_         


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