gabrielfalcao / HTTPretty

Intercept HTTP requests at the Python socket level. Fakes the whole socket module
https://httpretty.readthedocs.org
MIT License
2.11k stars 276 forks source link

Support for geventhttpclient #437

Open sboisson opened 3 years ago

sboisson commented 3 years ago

Network calls from geventhttpclient which use native gevent API are not intercepted by HTTPretty

mindflayer commented 3 years ago

Hi there, I am the author of mocket, which supports gevent and has a compatibility layer for using it the same way you use HTTPretty. You could give it a try: https://github.com/mindflayer/python-mocket/