I'm trying to make a usable tests for my package, but using Flask.test_client is so different from the requests API that I found it hard to use.
I have tried to make requests.adapters.HTTPAdapter wrap the response, but it looks like werkzeug doesn't use httplib (or urllib for that matter) to build it own Response object.
Any idea how it can be done? Reference to existing code will be the best (googling werkzeug + requests doesn't give any useful results)
Many thanks!!
A PyPI package now exists for this so you can use pip install requests-flask-adapter.
requests-like wrapper for flask's test_client