Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix loading cached JSON content when decode_content=True and the root ↵ | Jordan Cook | 2023-05-08 | 1 | -0/+8 |
| | | | | element is a list | ||||
* | Enable bugbear extension and fix warnings | Jordan Cook | 2023-05-08 | 1 | -4/+4 |
| | |||||
* | Use time-machine instead of sleep for timing-based tests | Jordan Cook | 2023-04-02 | 1 | -1/+10 |
| | |||||
* | Share SQLite connection objects among threads and use lock for write ↵ | Jordan Cook | 2023-03-01 | 1 | -1/+1 |
| | | | | operations instead of using thread-local connections | ||||
* | Don't raise_for_status if status_code of response is in allowable_codes | David Dv Schmidt | 2023-02-18 | 1 | -0/+4 |
| | |||||
* | Add tests for pypy3.9 | Jordan Cook | 2022-12-30 | 1 | -0/+7 |
| | |||||
* | Silence DeprecationWarnings during tests for deprecated methods | Jordan Cook | 2022-09-30 | 1 | -0/+10 |
| | |||||
* | Some additional logging and tests | Jordan Cook | 2022-06-16 | 1 | -0/+8 |
| | |||||
* | Split up remove_expired_reponses() into remove() and reset_expiration() ↵ | Jordan Cook | 2022-06-11 | 1 | -1/+5 |
| | | | | methods, with more granular arguments | ||||
* | Implement Cache-Control: stale-while-revalidate | Jordan Cook | 2022-05-04 | 1 | -2/+3 |
| | |||||
* | Skip tests for optional serializer dependencies if not installed | Jordan Cook | 2022-04-22 | 1 | -4/+20 |
| | |||||
* | Add support for DynamoDB TTL | Jordan Cook | 2022-04-20 | 1 | -20/+11 |
| | |||||
* | Add links to source files on Examples page | Jordan Cook | 2022-04-18 | 1 | -4/+4 |
| | |||||
* | Also skip cache read for requests excluded by allowable_methods | Jordan Cook | 2022-04-09 | 1 | -5/+3 |
| | |||||
* | Refactor refresh/revalidate behavior | Jordan Cook | 2022-04-09 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | * Rename two (unreleased) options to be more consistent with browser behavior: * `revalidate()` -> `refresh()` * `refresh()` -> `force_refresh()` * Revert `RequestSettings` changes and use just kwargs instead for per-request settings * Add full type hints back to extra kwargs for `CachedSession.send()` * Fix a bug in which some kwargs specific to requests-cache could get passed to `requests.Session.send()` * Use 'must-revalidate' as a temporary header for a user-requested refresh * Refer to expiration value of 0 more accurately as 'expire immediately' rather than 'do not cache' * It may potentially be saved and used with revalidation, depending on other headers/settings * `DO_NOT_CACHE` now has a different value but same effect * Refer to constants in docs instead of 0, -1, etc. * Log more details about post-read and pre-cache checks | ||||
* | Fix some regression bugs and broken tests | Jordan Cook | 2022-03-29 | 1 | -0/+16 |
| | |||||
* | Add more unit test coverage for new revalidation behavior | Jordan Cook | 2022-03-11 | 1 | -0/+7 |
| | |||||
* | Improve multithreaded tests: use fewer unique responses and more total ↵ | Jordan Cook | 2022-02-22 | 1 | -1/+2 |
| | | | | requests to increase concurrent cache hits | ||||
* | Define __all__ for a couple more modules for star imports | Jordan Cook | 2021-09-20 | 1 | -4/+3 |
| | |||||
* | Use pytest tmpdir fixture + UUID instead of NamedTemporaryFile | Jordan Cook | 2021-08-19 | 1 | -29/+19 |
| | |||||
* | Increase integration test timeout for DynamoDB, since it has a longer ↵ | Jordan Cook | 2021-08-14 | 1 | -9/+12 |
| | | | | startup time | ||||
* | Add unit tests for new header support | Jordan Cook | 2021-08-14 | 1 | -1/+4 |
| | |||||
* | Add more test coverage for cache_control and cache_keys modules | Jordan Cook | 2021-08-12 | 1 | -2/+2 |
| | |||||
* | Apply whitespace/EOF fixes and isort updates | Jordan Cook | 2021-08-08 | 1 | -1/+1 |
| | |||||
* | Some serialization fixes & updates: | Jordan Cook | 2021-07-03 | 1 | -3/+0 |
| | | | | | | | | | | | | | | | | | * Fix tests on python 3.6: * Make `cattrs` optional again * Don't run tests for serializers with missing optional dependencies * Show any skipped tests in pytest output * Fix redirect serialization for backends that serialize all values (DynamoDB and Redis) * Otherwise, the redirect value (which is just another key) will get converted into a `CachedResponse` * Make `pickle` serializer use `cattrs` if installed * Make `bson` serializer compatible with both `pymongo` version and standalone `bson` library * Split up `CattrStage` and preconf converters into separate modules * Turn preconf converters into `Stage` objects * Add `DeprecationWarning` for previous method of using `itsdangerous`, now that there's a better way to initialize it via `SerializerPipeline` * Remove `suppress_warnings` kwarg that's now unused * Make `SerializerPipeline`, `Stage`, and `CattrStage` importable from top-level package (`from requests_cache import ...`) * Add some more details to docs and docstrings | ||||
* | Add automated tests for cache behavior after version upgrades | Jordan Cook | 2021-06-20 | 1 | -0/+5 |
| | |||||
* | For Windows compatibility, use multiprocessing timeouts instead of process ↵ | Jordan Cook | 2021-06-03 | 1 | -5/+1 |
| | | | | signals with timeout_decorator | ||||
* | escape error caused by lack of Windows compatibility in timeout_decorator | Parker Hancock | 2021-05-28 | 1 | -0/+4 |
| | |||||
* | Add support for using request and response cache headers to set cache expiration | Jordan Cook | 2021-05-07 | 1 | -2/+12 |
| | |||||
* | Make sure all tests with SQLite dbs clean up after themselves | Jordan Cook | 2021-04-29 | 1 | -0/+7 |
| | |||||
* | Add raise_for_status option | Jordan Cook | 2021-04-23 | 1 | -0/+6 |
| | |||||
* | Combine test_cache.py with BaseCacheTest to run these tests for all backends | Jordan Cook | 2021-04-22 | 1 | -0/+17 |
| | |||||
* | Reorganize backend integration tests and add some more thorough tests | Jordan Cook | 2021-04-22 | 1 | -2/+10 |
| | |||||
* | Run multi-threaded tests for all backends, and run with more threads & ↵ | Jordan Cook | 2021-04-20 | 1 | -5/+16 |
| | | | | iterations for merges to master | ||||
* | Use pytest-order to order tests; remove ipdb recommendation | Jordan Cook | 2021-04-19 | 1 | -2/+1 |
| | |||||
* | Add some more info about testing | Jordan Cook | 2021-04-18 | 1 | -6/+10 |
| | |||||
* | Update all backend-specific integration tests to fail quickly if not set up, ↵ | Jordan Cook | 2021-04-12 | 1 | -0/+22 |
| | | | | rarther than silently ignoring or hanging | ||||
* | Add option to use pytest-httpbin instead of httpbin container | Jordan Cook | 2021-04-12 | 1 | -3/+29 |
| | |||||
* | Split 'core' module into 'session' and 'patcher' modules; keep placeholder ↵ | Jordan Cook | 2021-04-02 | 1 | -1/+1 |
| | | | | 'core' module for backwards-compatibility | ||||
* | Improve backend initialization: | Jordan Cook | 2021-04-02 | 1 | -1/+1 |
| | | | | | | | * Also allow passing a backend class (in addition to backend name and instance) * Detect duplicate params: Backends have different keyword args equivalent to the `cache_name` positional arg, for example `db_name`. If one of these is passed as a keyword arg, it results in a `TypeError` due to duplicate args (See #94). * For backends without dependencies installed, use a placeholder class to delay and re-raise the original `ImportError` * Add type annotations | ||||
* | Add tests against httpbin container for all supported methods and response ↵ | Jordan Cook | 2021-03-31 | 1 | -1/+16 |
| | | | | formats | ||||
* | Convert test_thread_safety and test_monkey_patch from TestCase classes to ↵ | Jordan Cook | 2021-03-31 | 1 | -0/+17 |
| | | | | pytest-style tests | ||||
* | Split tests into unit and integration tests and run separately in CI; update ↵ | Jordan Cook | 2021-03-31 | 1 | -1/+0 |
| | | | | Contributing Guide with more notes on testing | ||||
* | Add mocking for requests with redirect history | Jordan Cook | 2021-03-31 | 1 | -2/+24 |
| | |||||
* | Also remove invalid responses when running remove_expired_responses() | Jordan Cook | 2021-03-30 | 1 | -0/+1 |
| | |||||
* | Add and rewrite unit tests for CachedSession and CachedResponse using ↵ | Jordan Cook | 2021-03-22 | 1 | -0/+73 |
requests-mock and fixtures |