diff options
author | robot-piglet <[email protected]> | 2025-09-05 12:45:40 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-09-05 13:32:17 +0300 |
commit | 22568739dbd9bf62b94abb305c082a53b21e5aef (patch) | |
tree | 7833f8119b1292867b256356e25ee8593dccac75 /contrib/python/requests-oauthlib/patches/02-pr559-support-oauthlib-3.3.patch | |
parent | 2db41830cd5fce47e0bac5493c1e1472908cc4c5 (diff) |
Intermediate changes
commit_hash:39273c986cf85d42ec97d1388aaaf324a02a04bc
Diffstat (limited to 'contrib/python/requests-oauthlib/patches/02-pr559-support-oauthlib-3.3.patch')
-rw-r--r-- | contrib/python/requests-oauthlib/patches/02-pr559-support-oauthlib-3.3.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/python/requests-oauthlib/patches/02-pr559-support-oauthlib-3.3.patch b/contrib/python/requests-oauthlib/patches/02-pr559-support-oauthlib-3.3.patch new file mode 100644 index 00000000000..6932167fe6d --- /dev/null +++ b/contrib/python/requests-oauthlib/patches/02-pr559-support-oauthlib-3.3.patch @@ -0,0 +1,31 @@ +From b1dd93c5d024500b6236dea06734d6e6482c3565 Mon Sep 17 00:00:00 2001 +From: Jonathan Huot <[email protected]> +Date: Thu, 12 Jun 2025 20:06:32 +0200 +Subject: [PATCH 2/3] Updated tests to support 3.3.0/changes rel. to expires_at + +--- + tests/test_compliance_fixes.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/test_compliance_fixes.py b/tests/test_compliance_fixes.py +index c5166bdb..9ad6d099 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) + |