summaryrefslogtreecommitdiff
path: root/tests/integration/base_cache_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Add compatibility with urllib3 2.0Jordan Cook2023-05-151-9/+4
|
* Fix loading cached JSON content when decode_content=True and the root ↵Jordan Cook2023-05-081-2/+17
| | | | element is a list
* Enable bugbear extension and fix warningsJordan Cook2023-05-081-11/+5
|
* Share SQLite connection objects among threads and use lock for write ↵Jordan Cook2023-03-011-8/+22
| | | | operations instead of using thread-local connections
* Set default serializers for each backend using param defaults instead of ↵Jordan Cook2023-01-131-1/+0
| | | | 'default_serializer' class attributes
* Add tests for pypy3.9Jordan Cook2022-12-301-0/+2
|
* Handle errors due to invalid responses in deserialize(), so it applies to ↵Jordan Cook2022-10-281-2/+2
| | | | other methods besides just get_responses()
* Add 'url' argument to BaseCache.contains() and delete() for similarity to ↵Jordan Cook2022-09-301-2/+2
| | | | has_url() and delete_url()
* Match whether ignored_parameters are present in a request (without matching ↵Jordan Cook2022-09-291-11/+13
| | | | content)
* Update tests and docsJordan Cook2022-06-111-10/+2
|
* Split up remove_expired_reponses() into remove() and reset_expiration() ↵Jordan Cook2022-06-111-2/+10
| | | | methods, with more granular arguments
* Run integration tests with all serializers _only_ for Filesystem backend; ↵Jordan Cook2022-06-101-29/+6
| | | | for all other backends, only test with default serializer
* Change this into an option for CattrStage instead of a separate classJordan Cook2022-06-101-1/+6
|
* Update repo links, changelog, and contributorsJordan Cook2022-05-151-0/+1
|
* Add 'older_than' argument to remove_expired_responses()Jordan Cook2022-05-031-2/+0
|
* Add a BaseStorage.default_serializer attribute, to be more explicit about ↵Jordan Cook2022-04-221-2/+3
| | | | which backends use something other than pickle by default
* Merge *PickleDict storage classes into parent classesJordan Cook2022-04-221-2/+8
|
* Store responses in DynamoDB as JSON documents instead of serialized binariesJordan Cook2022-04-191-6/+0
|
* Close database connections (if applicable) on CachedSession.__exit__ and close()Jordan Cook2022-04-181-1/+2
|
* Add TTL testsJordan Cook2022-04-151-3/+4
|
* Improvements for MongoDB:Jordan Cook2022-04-151-8/+22
| | | | | * Use native document format (BSON) instead of binary blob * Add option to use native TTL feature
* Fix some regression bugs and broken testsJordan Cook2022-03-291-1/+1
|
* Add more unit test coverage for new revalidation behaviorJordan Cook2022-03-111-11/+13
|
* Handle CorruptGridFile error in GridFS backendJordan Cook2022-02-221-0/+1
|
* Add lock around remove_expired_responses() for SQLite, Filesystem, and ↵Jordan Cook2022-02-221-26/+26
| | | | GridFS backends
* Improve GridFS backend thread safetyJordan Cook2022-02-221-1/+1
|
* Run additional stress tests with multiple processesJordan Cook2022-02-221-14/+24
|
* Improve multithreaded tests: use fewer unique responses and more total ↵Jordan Cook2022-02-221-18/+24
| | | | requests to increase concurrent cache hits
* Format using a more typical line length of 100Jordan Cook2022-01-011-3/+9
|
* Add unit test to test revalidation refreshening behaviorManuel Eggimann2021-11-301-0/+33
|
* Fix duplicate cache read (contains + getitem)Jordan Cook2021-10-231-0/+15
|
* Fix immediate expiration with Expires: 0 and reorganize cache header logic a bitJordan Cook2021-10-131-7/+4
|
* Support immediate expiration + revalidation for Cache-Control: max-age=0 and ↵Jordan Cook2021-10-101-2/+26
| | | | Expires: 0
* Use only integers for expire_after values in seconds, since this is what ↵Jordan Cook2021-09-181-12/+14
| | | | Cache-Control: max-age requires
* Add a bit of missing test coverageJordan Cook2021-09-061-2/+2
|
* Fix incorrect location of redirects.sqlite when using filesystem backendJordan Cook2021-08-231-0/+4
|
* Add unit tests for new header supportJordan Cook2021-08-141-10/+37
|
* Drop testing for requests <=0.21Jordan Cook2021-08-141-4/+0
|
* Apply whitespace/EOF fixes and isort updatesJordan Cook2021-08-081-1/+1
|
* Use BaseCache.clear() BaseStorage.clear() prioer to integration testsJordan Cook2021-08-021-2/+1
|
* Add support for Response.next when 302 responses are cached directlyJordan Cook2021-07-161-2/+17
|
* Fix cache_control option to correctly toggle cache header usage (off by default)Jordan Cook2021-07-091-7/+11
|
* Improve type annotations and fix type checking errorsJordan Cook2021-07-061-6/+2
|
* Some serialization fixes & updates:Jordan Cook2021-07-031-6/+17
| | | | | | | | | | | | | | | | | * 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
* initial serialization pipeline refactorParker Hancock2021-06-141-3/+1
|
* Workaround for poetry issue on python 3.10 betaJordan Cook2021-06-111-2/+4
|
* Add tests and docsJordan Cook2021-06-111-8/+14
|
* Compatibility fixes for requests 2.16 and 2.17Jordan Cook2021-06-031-0/+5
|
* making Flake8 happy by changing comparisions from == True/False/None to is ↵Parker Hancock2021-06-031-7/+7
| | | | True/False/None
* remove 'ignored parameters' from request prior to cachingParker Hancock2021-06-031-0/+43
|