Python - Mocking the behavior of an object outside of a function

后端 未结 0 1745
死守一世寂寞
死守一世寂寞 2021-01-28 05:38

I have 3 files:

main.py

from util import ResultGetter

result_getter = ResultGetter()
result = result_getter.get_result()

def function_a():
    return res         


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