diff options
| author | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-18 13:13:42 -0500 |
|---|---|---|
| committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-18 13:40:23 -0500 |
| commit | 1114085dbb38be59ecb862f77e752772d7b55ca1 (patch) | |
| tree | cc0e4dea359f5a73660a6880172711269f8fbd14 /docs/user_guide | |
| parent | b59397f5583303f1a9f74781c7db098cfffadbac (diff) | |
| download | requests-cache-1114085dbb38be59ecb862f77e752772d7b55ca1.tar.gz | |
Turn VCR converter into an example in the docs instead of a library feature
Diffstat (limited to 'docs/user_guide')
| -rw-r--r-- | docs/user_guide/compatibility.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/user_guide/compatibility.md b/docs/user_guide/compatibility.md index 47eb5d4..fff338c 100644 --- a/docs/user_guide/compatibility.md +++ b/docs/user_guide/compatibility.md @@ -172,3 +172,14 @@ requests-mock examples above. ```{literalinclude} ../../tests/compat/test_responses_load_cache.py ``` ::: + +## VCR +If you would like to reuse your cached response data for unit tests, one option is to convert your +cache into a format compatible with VCR-vased libraries like +[vcrpy](https://github.com/kevin1024/vcrpy) and [betamax](https://github.com/betamaxpy/betamax). +:::{admonition} Example: vcr.py +:class: toggle +```{literalinclude} ../../examples/vcr.py +:lines: 7- +``` +::: |
