diff options
Diffstat (limited to 'docs/user_guide/compatibility.md')
-rw-r--r-- | docs/user_guide/compatibility.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/user_guide/compatibility.md b/docs/user_guide/compatibility.md index fff338c..fcd5304 100644 --- a/docs/user_guide/compatibility.md +++ b/docs/user_guide/compatibility.md @@ -141,7 +141,7 @@ Or if you use a `CachedSession` object, you could replace it with a regular `Ses If you want both caching and mocking features at the same time, you can attach requests-mock's [adapter](https://requests-mock.readthedocs.io/en/latest/adapter.html) to a `CachedSession`: -:::{admonition} Example: test_requests_mock_combine_cache.py +:::{admonition} Example: `test_requests_mock_combine_cache.py` :class: toggle ```{literalinclude} ../../tests/compat/test_requests_mock_combine_cache.py ``` @@ -157,7 +157,7 @@ This has the advantage of only using request-mock's behavior for ``` To turn that into a complete example: -:::{admonition} Example: test_requests_mock_load_cache.py +:::{admonition} Example: `test_requests_mock_load_cache.py` :class: toggle ```{literalinclude} ../../tests/compat/test_requests_mock_load_cache.py ``` @@ -167,7 +167,7 @@ To turn that into a complete example: Usage with the [responses](https://github.com/getsentry/responses) library is similar to the requests-mock examples above. -:::{admonition} Example: test_responses_load_cache.py +:::{admonition} Example: `test_responses_load_cache.py` :class: toggle ```{literalinclude} ../../tests/compat/test_responses_load_cache.py ``` @@ -177,7 +177,7 @@ requests-mock examples above. 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 +:::{admonition} Example: `vcr.py` :class: toggle ```{literalinclude} ../../examples/vcr.py :lines: 7- |