vcrpy
vcrpy copied to clipboard
Automatically mock your HTTP interactions to simplify and speed up testing
```python from pathlib import Path my_path = Path.cwd() / 'cassette.json' with vcr.use_cassette(my_file): requests.get('http://httpbin.org/get') ``` No file is saved with the above scenario, however if you call str() on my_path, it...
Currently, `urlparse` is invoked for all properties of uri in `vcr.request.Request` which has an impact on performance especially with lengthy cassettes. I've changed this to use a property such that...
It's all in the title and seems to be related to #356 My tests depend on some sensitive data to be at the value I replaced it with. So when...
Here's what happens when you use `auth=requests_ntlm.HttpNtlmAuth(username, password)`: ``` File "/venv/lib/python3.5/site-packages/requests/api.py", line 72, in get return request('get', url, params=params, **kwargs) File "/venv/lib/python3.5/site-packages/requests/api.py", line 58, in request return session.request(method=method, url=url, **kwargs)...
'rerecord' mode that essentially ignores the recorded cassette, strict validation of record modes
Is there a reason that this mode doesn't exist? Perhaps because you can simply delete the existing cassette and rerecord?
vcrpy 2.0.1, requests 2.22.0 We are using requests with sessions to call an API endpoint to trigger a job and then call another endpoint in a loop to get the...
Is there a built-in way to avoid saving the cassette YAML file? There's an integration test I'd like to inspect the responses for but I don't need to record them...
The first could be e.g. a POST with one, only the remaining ones are expected to be GETs without one.
1 I am seeing this error pop up many times, seems to be only failing when using python3. I have discovered that nose-detecthttp uses vcrpy under the hood. So that...
This persister keeps a cache of cassettes, to avoid the overhead of constantly serializing and deserializing unchanged cassettes. This is especially useful when no changes to the cassette are expected,...