Bump python version to 3.6, fix tests for redis timeout, fix up travis/coveralls reporting #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR bumps the python version to 3.6 and fixes tests to reflect RedisCache timeout behaviour.
This PR is part of openspending/openspending#1302
RedisCache timeout for expiring items can be set either during creation of the cache, with a
default_timeout
, or when putting an item into the cache, with atimeout
parameter.put
,default_timeout
will be used.os-api-cache/os_api_cache/base_cache.py
Line 11 in 5114374
os-api-cache/os_api_cache/base_cache.py
Lines 21 to 24 in 5114374
default_timeout
will be reset on it.os-api-cache/os_api_cache/redis_cache.py
Lines 29 to 30 in 5114374
put
, the item will be set to expire after that time. However, if it accessed within that time, a new expire timeout is set to thedefault_timeout
value.