cmu-delphi / covidcast-indicators

Back end for producing indicators and loading them into the COVIDcast API.
https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html
MIT License
12 stars 17 forks source link

Convert `requests` mocks to use `requests_mock` library instead #1863

Open krivard opened 1 year ago

krivard commented 1 year ago

1864 adds a test to validator that mocks out an HTTP request using the requests_mock library. That tests file also includes a mechanism to manually mock out HTTP requests using a custom class. We should replace usage of the custom class with usage of requests_mock instead.

dshemetov commented 1 year ago

There is also responses, which seems a little more popular. A tiny discussion between the maintainers.