Mock function without executing it using unittest

后端 未结 0 1666
眼角桃花
眼角桃花 2021-02-02 07:57

I have a function that loads data from a data.json file defined in models.py as follow:

def load_data():
    file_path = Path(__file__).         


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