Skip to content

Commit

Permalink
Merge pull request #30 from mdsol/develop
Browse files Browse the repository at this point in the history
master ← develop
  • Loading branch information
ykitamura-mdsol authored Aug 18, 2021
2 parents c4291b6 + 0711017 commit 82bb7ce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.2.2
- Extend the fallback cache TTL to 5 minutes.

# 1.2.1
- Add autodeploy to PyPI
- Remove Support for EOL Python 3.5
Expand Down
2 changes: 1 addition & 1 deletion mauth_client/key_holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from mauth_client.exceptions import InauthenticError

CACHE_MAXSIZE = 128
CACHE_TTL = 60
CACHE_TTL = 300
MAX_AGE_REGEX = re.compile(r"max-age=(\d+)")


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mauth-client"
version = "1.2.1"
version = "1.2.2"
description = "MAuth Client for Python"
repository = "https://github.com/mdsol/mauth-client-python"
authors = ["Medidata Solutions <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion tests/key_holder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_get_request(self):
requests.get(MAUTH_PATH, text=json.dumps(MAUTH_RESPONSE))
self.assertEqual(KeyHolder.get_public_key(APP_UUID), PUBLIC_KEY)
self.assertEqual(KeyHolder._CACHE.maxsize, 128)
self.assertEqual(KeyHolder._CACHE.ttl, 60)
self.assertEqual(KeyHolder._CACHE.ttl, 300)

def test_get_request_respect_cache_header(self):
KeyHolder._CACHE = None
Expand Down

0 comments on commit 82bb7ce

Please sign in to comment.