summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add compatibility with urllib3 2.0Jordan Cook2023-05-152-10/+4
|
* Fix loading cached JSON content when decode_content=True and the root ↵Jordan Cook2023-05-082-2/+25
| | | | element is a list
* Enable bugbear extension and fix warningsJordan Cook2023-05-088-30/+24
|
* Don't normalize CachedResponse.url when redacting ignored paramsJordan Cook2023-04-021-2/+20
|
* Use time-machine instead of sleep for timing-based testsJordan Cook2023-04-023-77/+121
|
* Ignore Cache-Control: must-revalidate and no-cache when cache_control=FalseJordan Cook2023-03-241-7/+16
|
* Allow regexes for URL expiration patternsSimon Leiner2023-03-241-0/+4
| | | | | This allows for more fine-grained control over URL patterns than globbing in the rare cases where that is needed.
* Update sample cache filesJordan Cook2023-03-013-0/+0
|
* Share SQLite connection objects among threads and use lock for write ↵Jordan Cook2023-03-014-11/+37
| | | | operations instead of using thread-local connections
* Change DynamoDB table to use cache key as partition keyJordan Cook2023-03-012-5/+13
|
* Don't raise_for_status if status_code of response is in allowable_codesDavid Dv Schmidt2023-02-182-9/+38
|
* Raise an error for invalid expiration string values (except for headers ↵Jordan Cook2023-02-182-1/+18
| | | | containing httpdates)
* Set default serializers for each backend using param defaults instead of ↵Jordan Cook2023-01-136-14/+7
| | | | 'default_serializer' class attributes
* Add tests for pypy3.9Jordan Cook2022-12-304-5/+25
|
* Make CachedResponse.cache_key available from all cache access methodsJordan Cook2022-12-301-0/+11
|
* Make use of index with SQLiteCache.filter(expired=False)Jordan Cook2022-10-282-16/+19
|
* Add SQLite method to count unexpired responses in SQLJordan Cook2022-10-281-0/+10
|
* Omit invalid responses and set response.cache_key in SQLiteCache.sorted()Jordan Cook2022-10-282-5/+31
|
* Handle errors due to invalid responses in deserialize(), so it applies to ↵Jordan Cook2022-10-283-12/+25
| | | | other methods besides just get_responses()
* Handle using a converter that doesn't support the omit_if_default keyword ↵Jordan Cook2022-10-281-0/+13
| | | | argument
* Add more notes on deprecated methodsJordan Cook2022-10-262-2/+2
|
* Add BaseCache.has_key() back; this was intended to be deprecated, not yet ↵Jordan Cook2022-10-261-0/+8
| | | | removed
* Add support for header values as bytesJordan Cook2022-10-201-0/+1
|
* Explicitly disable pickling CachedSession objectsJordan Cook2022-10-201-0/+6
|
* Add 'url' argument to BaseCache.contains() and delete() for similarity to ↵Jordan Cook2022-09-304-24/+40
| | | | has_url() and delete_url()
* Bump max wait time for MongoDB TTL testJordan Cook2022-09-301-2/+2
|
* Fix issue on Windows with occasional missing `CachedResponse.created_at` ↵Jordan Cook2022-09-301-2/+3
| | | | timestamp
* Silence DeprecationWarnings during tests for deprecated methodsJordan Cook2022-09-304-26/+50
|
* Fix tests for python 3.7Jordan Cook2022-09-301-2/+2
|
* Add ttl_offset argument for Redis backendJordan Cook2022-09-301-1/+24
|
* Add delete() function for patcherJordan Cook2022-09-291-4/+12
|
* Match whether ignored_parameters are present in a request (without matching ↵Jordan Cook2022-09-293-21/+38
| | | | content)
* Add some missing sample cache filesJordan Cook2022-09-295-0/+0
|
* Rename 'test_compat' test module to 'test_upgrade' for disambiguation with ↵Jordan Cook2022-09-291-2/+0
| | | | other compatibility tests
* Add method to recreate cache keysJordan Cook2022-08-231-0/+40
|
* Add support for duplicate request paramsJordan Cook2022-08-151-0/+19
|
* Update only_if_cached to take precedence over refresh or other revalidation ↵Jordan Cook2022-07-301-0/+10
| | | | conditions
* Add retries for MongoDB ServerSelectionTimeoutError on GitHub Actions runnersJordan Cook2022-07-051-1/+22
|
* Some additional logging and testsJordan Cook2022-06-162-0/+24
|
* Add support for VaryJordan Cook2022-06-161-0/+80
|
* Normalize ordering and whitespace for multi-value request headersJordan Cook2022-06-161-4/+13
|
* Clean up SerializerPipeline.decode_contentJordan Cook2022-06-111-2/+3
|
* Clean up SQLiteCache convenience methods a bitJordan Cook2022-06-111-4/+9
|
* Update tests and docsJordan Cook2022-06-119-159/+183
|
* Split up remove_expired_reponses() into remove() and reset_expiration() ↵Jordan Cook2022-06-115-156/+193
| | | | methods, with more granular arguments
* Run integration tests with all serializers _only_ for Filesystem backend; ↵Jordan Cook2022-06-104-63/+57
| | | | for all other backends, only test with default serializer
* Add decode_content option for storage classes, and use as the default ↵Jordan Cook2022-06-101-5/+1
| | | | behavior for Filesystem, DynamoDB, and MongoDB backends
* Change this into an option for CattrStage instead of a separate classJordan Cook2022-06-101-1/+6
|
* Add serializer stage that decodes/re-encodes response contentJordan Cook2022-06-101-7/+9
|
* Add a base model repr that excludes default values even if rich isn't installedJordan Cook2022-05-302-4/+10
|