vcrpy icon indicating copy to clipboard operation
vcrpy copied to clipboard

Automatically mock your HTTP interactions to simplify and speed up testing

Results 197 vcrpy issues
Sort by recently updated
recently updated
newest added

Updates the requirements on [urllib3](https://github.com/urllib3/urllib3) to permit the latest version. Release notes Sourced from urllib3's releases. 2.2.0 🖥️ urllib3 now works in the browser :tada: This release adds experimental support...

dependencies
python

This is a follow up from #807. I tested v6.0.1 last week and my issue recording requests against openai was resolved. However, I just uplifted my app from Flask to...

Hello, this one took me a while to find out what's going on and how to reproduce. To reproduce this I'm using: * pytest: 7.4.4 * pytest-asyncio: 0.23.4 * pytest-recording:...

After updating to Python 3.12 some of my tests throw an error. It seems that when using `urlopen` the connection is not correctly patched. Below a code snippet which allows...

Similar slightly to https://github.com/kevin1024/vcrpy/issues/117 The urllib3 library's response class has the method `release_conn()`, intended for use with connection pools: https://urllib3.readthedocs.io/en/latest/reference/urllib3.response.html#urllib3.response.BaseHTTPResponse.release_conn When I try to use VCR with my code that...

(PS: I am using the https://github.com/kiwicom/pytest-recording tool) I'd like to ignore all of those `X-*` headers, but preferably not list them all individually. According to e.g. https://www.ibm.com/docs/en/sva/10.0.7?topic=stanza-http-header, only `/a-z_-/i` are...

I get a `TypeError: cannot pickle 'generator' object` error when using urllib3 v2.1.0 and the error goes away with urllib3 v1.26.18. The vcrpy version is 5.1.0; Python v3.10.13. The stack...

When HTTPS requests were made through a proxy, the proxy host name and port ended up in the cassette URLs. In this PR, I extend the `Proxy` fixture to handle...

I wanted to inform the community that I've successfully implemented a custom persister for **_vcrpy_** in my project. The purpose of this persister is to enable **_vcrpy_** to directly consume...

Allow to use regexes for `ignore_hosts` to easily ignore hosts that are frequently changed e.g. `pipelinesghubeus*.actions.githubusercontent.com`