Responses
Give Requests code fake HTTP responses inside a Python test.
getsentry · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a Python virtual environment, install responses==0.26.3. Return a synthetic stock response and check that a matching request reads it.
What we tested
0.26.3. Return a synthetic stock response and check that a matching request reads it. Matched the request and returned the fictional response from local memory.