Mocking an variable inside function using mock.patch

后端 未结 0 1039
感情败类
感情败类 2021-01-15 06:07

I have problem with mocking testing:

from module import FUNC
class A():
  def __init__(self):
    self.var = FUNC()

  def test(self):
    var_test = self.var         


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