Having trouble mocking a request in a class method using patch context manager in Python

后端 未结 0 516
面向向阳花
面向向阳花 2021-01-15 09:19

I am trying to unit test a class method that makes an API request and returns a json file that is loaded into a variable as a dictionary. I am trying to test that the reques

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