vcrpy
vcrpy copied to clipboard
Automatically mock your HTTP interactions to simplify and speed up testing
This sequence https://github.com/kevin1024/vcrpy/blob/f3f66086a149722812345aaf1bb304ff39d105ef/vcr/filters.py#L110-L116 assumes that anything that isn't a BytesIO or dict or with content-type json that is splittable by `b"="` can be UTF-8 decoded. But any random unlucky binary...
I am trying to migrate one library from requests to http and it seems httpx portion have some bugs folowing casete cant be used with httpx https://github.com/billdeitrick/pypco/blob/master/tests/cassettes/TestPublicRequestFunctions.test_upload_and_use_file.yaml because it tries...
`cassette.filter_request` only filters some request attributes like headers but does not take into account any of the `match_on` configurations. As a result if a similar request has been seen before...
* use cassette now handles str and Paths * default filesystem.py persister hanles now Path and str * added test to cover accepting Paths as well
- removed unneeded decoding of body in httpx_stubs.py - added asset to upload - added equivalent cassette for upload - added testing to cover uploading to vcr with httpx -...
`urlparse` took most of the time in my tests. So, those simple changes speed up tests several times in my case.
For your consideration. :warning: Please **CLOSE AND RE-OPEN** this pull request so that [further workflow runs get triggered](https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs) for this pull request.
On httpx response should be read with ignore error
Dear vcrpy Developers, I am writing to report an issue encountered during the installation of the vcrpy package (version >=5.0.0) within a Conda environment. Despite following standard procedures for environment...