From b909ffe5e22c04f388d4e3656da411f85958214c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 09:57:20 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_tokens.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_tokens.py b/tests/test_tokens.py index d6da0f126..45ffbec02 100644 --- a/tests/test_tokens.py +++ b/tests/test_tokens.py @@ -311,16 +311,16 @@ def test_check_exp(self): def test_check_token_not_expired_if_in_leeway(self): token = MyToken() - token.set_exp('refresh_exp', lifetime=timedelta(days=1)) + token.set_exp("refresh_exp", lifetime=timedelta(days=1)) datetime_in_leeway = token.current_time + timedelta(days=1) with self.assertRaises(TokenError): - token.check_exp('refresh_exp', current_time=datetime_in_leeway) + token.check_exp("refresh_exp", current_time=datetime_in_leeway) # a token 1 day expired is valid if leeway is 2 days token.get_token_backend().leeway = timedelta(days=2).total_seconds() - token.check_exp('refresh_exp', current_time=datetime_in_leeway) + token.check_exp("refresh_exp", current_time=datetime_in_leeway) token.get_token_backend().leeway = 0 def test_for_user(self):