Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1kastner/f25eb7ed5e21fe6c6e97c20e25c8b427 to your computer and use it in GitHub Desktop.
Save 1kastner/f25eb7ed5e21fe6c6e97c20e25c8b427 to your computer and use it in GitHub Desktop.
import requests
import requests_mock
import requests_cache
with requests_mock.mock() as mock:
mock.get("mock://test", text="test")
requests_cache.install_cache("test_cache", backend="memory")
requests.get("mock://test")
# -> RecursionError: maximum recursion depth exceeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment