diff options
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/basic_patching.py (renamed from examples/session_patch.py) | 2 | ||||
-rwxr-xr-x | examples/basic_sessions.py (renamed from examples/basic_usage.py) | 2 | ||||
-rwxr-xr-x | examples/generate_test_db.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/session_patch.py b/examples/basic_patching.py index 204320d..def0ead 100755 --- a/examples/session_patch.py +++ b/examples/basic_patching.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # flake8: noqa: F841 """ -The same as ``basic_usage.py``, but using global session patching +The same as `basic_sessions.py`, but using {ref}`patching` """ import time diff --git a/examples/basic_usage.py b/examples/basic_sessions.py index 3f0d82d..42a6dd2 100755 --- a/examples/basic_usage.py +++ b/examples/basic_sessions.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # flake8: noqa: F841 """ -A simple example using requests-cache with httpbin +A simple example using requests-cache with [httpbin](https://httpbin.org) """ import time diff --git a/examples/generate_test_db.py b/examples/generate_test_db.py index c58fb2a..7f3dd6b 100755 --- a/examples/generate_test_db.py +++ b/examples/generate_test_db.py @@ -47,7 +47,7 @@ def populate_cache(progress, task): # Cache a variety of different response formats, which may result in different behavior urls = [ - ('GET', 'https://httpbin.org/{endpoint}') + ('GET', f'https://httpbin.org/{endpoint}') for endpoint in HTTPBIN_FORMATS + HTTPBIN_EXTRA_ENDPOINTS ] urls += [(method, 'https://httpbin.org/{method.lower()}') for method in HTTPBIN_METHODS] |