Mocking an external API call in pytest
I am trying to add a mock API call for requests.post external API call. I tried few things but I get following response for print(response)
How can i get 200 for response.status_code from the mock?
I am trying to add a mock API call for requests.post external API call. I tried few things but I get following response for print(response)
How can i get 200 for response.status_code from the mock?