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
trafficstars

In https://github.com/pypa/twine/pull/703, I'm attempting to use VCR to work around flakiness from a file upload to a test server. There was a request not have any Python object serialization in...

- Addresses #502 - The original test actually identified the issue, so for this change it only needed to returned to the correct output - A user will only encounter...

bug
aiohttp

So it would appear that content-length is included in the response headers however it doesn't have any effect? Eg: deleting it or changing it to a broken value doesn't do...

- currently we need to use the `ulrllib` module to make our responses - we should be able to use the `requests` module which will increase the usability of vcrpy...

Hi! In our application backend, we're keeping a single HTTPS connection constantly open to push notifications to our frontend whenever some important event comes up. Is it possible to emulate...

view unicode as text, when i view my vcr file

The PR to add aiohttp cookie support (#536) contained a change in how responses are handled when they are missing from a write protected cassette in ba9105348521b8d63e6798df8dcc9d91aad81cf3 . This bugfix...

Hi Guys, I am trying to record a call with the latest vcr: ``` proxies = { 'http': 'socks5h://user:password@host:port' 'https': 'socks5h://user:password@host:port' } requests.get(some_url, cert=('client.crt', 'client.key'), verify='ca_root.crt', proxies=proxies) ``` But it...

Hello :wave: It looks that the function passed to `before_record_request` when making a VCR instance, gets called twice with the same request. Here's some test code: ```py import vcr import...

## `_before_record_request` is called twice in recording mode In recording mode, it seems `_before_record_request` is called twice. In `can_play_response_for`, `_before_record_request` is already called on the `request` instance at L253. https://github.com/kevin1024/vcrpy/blob/535efe1eb92e894ccadc5515e0642b058c8c31f0/vcr/cassette.py#L252-L254...