summaryrefslogtreecommitdiff
path: root/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* Add compatibility with urllib3 2.0Jordan Cook2023-05-151-1/+0
|
* Enable bugbear extension and fix warningsJordan Cook2023-05-083-9/+9
|
* 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-022-76/+111
|
* 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.
* Don't raise_for_status if status_code of response is in allowable_codesDavid Dv Schmidt2023-02-181-9/+34
|
* Raise an error for invalid expiration string values (except for headers ↵Jordan Cook2023-02-182-1/+18
| | | | containing httpdates)
* Add tests for pypy3.9Jordan Cook2022-12-301-3/+6
|
* Make use of index with SQLiteCache.filter(expired=False)Jordan Cook2022-10-281-12/+11
|
* Omit invalid responses and set response.cache_key in SQLiteCache.sorted()Jordan Cook2022-10-281-1/+1
|
* Handle errors due to invalid responses in deserialize(), so it applies to ↵Jordan Cook2022-10-282-10/+23
| | | | 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 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-302-22/+38
| | | | has_url() and delete_url()
* 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-303-26/+40
|
* Add delete() function for patcherJordan Cook2022-09-291-4/+12
|
* Match whether ignored_parameters are present in a request (without matching ↵Jordan Cook2022-09-292-10/+25
| | | | content)
* 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
* Some additional logging and testsJordan Cook2022-06-161-0/+16
|
* Add support for VaryJordan Cook2022-06-161-0/+80
|
* Normalize ordering and whitespace for multi-value request headersJordan Cook2022-06-161-4/+13
|
* Update tests and docsJordan Cook2022-06-113-144/+161
|
* Split up remove_expired_reponses() into remove() and reset_expiration() ↵Jordan Cook2022-06-113-153/+178
| | | | methods, with more granular arguments
* Add a base model repr that excludes default values even if rich isn't installedJordan Cook2022-05-301-0/+6
|
* Add Placeholder.loads() (needed in some scenerios with missing dependencies ↵Jordan Cook2022-05-301-0/+2
| | | | when using PyInstaller)
* Add CachedRequest.path_url propertyJordan Cook2022-05-181-1/+1
|
* Implement Cache-Control: stale-while-revalidateJordan Cook2022-05-042-75/+173
|
* Add 'older_than' argument to remove_expired_responses()Jordan Cook2022-05-031-1/+34
|
* Add always_revalidate session optionJordan Cook2022-05-031-3/+23
|
* Remove row count from BaseCache.__str__Jordan Cook2022-04-221-6/+3
|
* For SQLite expires column, use time.time() instead of datetime.timestamp()Jordan Cook2022-04-221-5/+5
|
* Merge *PickleDict storage classes into parent classesJordan Cook2022-04-222-7/+9
|
* Skip tests for optional serializer dependencies if not installedJordan Cook2022-04-221-2/+7
|
* Add misc missing test coverageJordan Cook2022-04-205-1/+41
|
* Improve output for all models when printed or logged with richJordan Cook2022-04-191-0/+26
|
* Add support for Cache-Control: stale-if-errorJordan Cook2022-04-182-8/+48
|
* Add support for Cache-Control: max-stale and min-freshJordan Cook2022-04-181-0/+32
|
* Move all cache policy-related modules to separate 'policy' subpackageJordan Cook2022-04-173-5/+5
|
* Add serializer name to cache key to avoid errors due to switching serializersJordan Cook2022-04-152-9/+8
|
* Add indexed datetime column to SQLite backend for faster evictionJordan Cook2022-04-102-16/+13
|
* Add default list of ignored_parameters for most common authentication ↵Jordan Cook2022-04-101-13/+36
| | | | params/headers
* Also skip cache read for requests excluded by allowable_methodsJordan Cook2022-04-093-27/+76
|
* Move logic for translating kwargs to headers into ↵Jordan Cook2022-04-092-15/+14
| | | | cache_actions.set_request_headers()
* Refactor refresh/revalidate behaviorJordan Cook2022-04-093-70/+83
| | | | | | | | | | | | | | | * 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