How to create an instance of mocked class within another class

前端 未结 0 1628
粉色の甜心
粉色の甜心 2021-01-22 08:54

Class A has an attribute of another class B.

Class A():
   def __init__(self, b):
      self.b = b

   def get_b_secret(self, job_id):
      x, y = self.b.get_sec         


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