We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7263c0c commit b1dd93cCopy full SHA for b1dd93c
1 file changed
tests/test_compliance_fixes.py
@@ -115,7 +115,7 @@ def test_fetch_access_token(self):
115
authorization_response="https://i.b/?code=hello",
116
)
117
# Times should be close
118
- approx_expires_at = time.time() + 3600
+ approx_expires_at = round(time.time()) + 3600
119
actual_expires_at = token.pop("expires_at")
120
self.assertAlmostEqual(actual_expires_at, approx_expires_at, places=2)
121
@@ -289,7 +289,7 @@ def test_fetch_access_token(self):
289
290
291
292
- approx_expires_at = time.time() + 86400
+ approx_expires_at = round(time.time()) + 86400
293
294
295
0 commit comments