Python Unit test for method contains request

后端 未结 0 1529
心在旅途
心在旅途 2021-01-11 23:09

I have a method, which contains external rest-api calls.

ex:

def get_dataset():
    url=requests.get("http://api:5001/get_trainingdata")
             


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