diff --git a/requirements.txt b/requirements.txt index 78a184c..c732029 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ requests==2.31.0 -oauthlib[signedtoken]==3.2.2 +oauthlib[signedtoken]==3.3.0 diff --git a/tests/test_compliance_fixes.py b/tests/test_compliance_fixes.py index c5166bd..9ad6d09 100644 --- a/tests/test_compliance_fixes.py +++ b/tests/test_compliance_fixes.py @@ -115,7 +115,7 @@ def test_fetch_access_token(self): authorization_response="https://i.b/?code=hello", ) # Times should be close - approx_expires_at = time.time() + 3600 + approx_expires_at = round(time.time()) + 3600 actual_expires_at = token.pop("expires_at") self.assertAlmostEqual(actual_expires_at, approx_expires_at, places=2) @@ -289,7 +289,7 @@ def test_fetch_access_token(self): authorization_response="https://i.b/?code=hello", ) - approx_expires_at = time.time() + 86400 + approx_expires_at = round(time.time()) + 86400 actual_expires_at = token.pop("expires_at") self.assertAlmostEqual(actual_expires_at, approx_expires_at, places=2)