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

httpx not worked from box if we create simple test ``` import pytest import httpx @pytest.mark.vcr() def test_iana(): response = httpx.get('http://www.iana.org/domains/reserved') assert b'Example domains' in response.content ``` and run it...

When I try to run a simple test to log in to this API, I get an `AttributeError`: ```py _____________________________________________________________________________________________________________ test_login ______________________________________________________________________________________________________________ username = '', password = '' @pytest.mark.asyncio @pytest.mark.vcr()...

Hi! This PR tweaks the file fixture loading in tests to use [`importlib_resources`](https://pypi.org/project/importlib-resources/) to ensure that tests can be run from any working directory (or even as part of a...

Hi! I think I found a bug... or at least something that is not working as the VCR gem (which vcrpy is said to be inspired on). In the Ruby...

The `httpx_reponse.content.decode("utf-8", "ignore")` would corrupt binary content that can't decoded to unicode. We should serialize the binary content directly in that case. A better way to fix this is probably...

A test_replace_post_data_parameters_with_body_type_as_dict is added under /vcrpy/tests/unit/test_filters.py

Tried to filter out cookies to prevent them from being recorded. Filtering on other headers works fine, but `cookie` and `set-cookie` keep appearing in the recordings. ``` my_vcr = vcr.VCR(...

I have just installed vcr and I love it. I did some testing with pytest on my software, and its all passing now, but when I put it in production,...

I'm getting error messages like this: ``` vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette (....yaml') in your current record mode ('once'). No match for the request () was found. Found 2 similar...

# Repro 1. Run a VCR test 2. Delete the contents of the cassette file in an attempt to force it to regenerate (reference #578) 3. Run the test again...