From e08da8d76477ce132bac2396b96a8e7f620af5d0 Mon Sep 17 00:00:00 2001 From: Reuven Starodubski Date: Sun, 8 Dec 2024 13:35:58 +0200 Subject: [PATCH] fix lint --- jwthenticator/tests/test_tokens.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jwthenticator/tests/test_tokens.py b/jwthenticator/tests/test_tokens.py index e490281..fb48889 100644 --- a/jwthenticator/tests/test_tokens.py +++ b/jwthenticator/tests/test_tokens.py @@ -18,8 +18,8 @@ @pytest.fixture def set_timezone()-> Generator[Callable[[str], None], None, None]: original_tz = os.environ.get('TZ') - def change_timezone(tz: str) -> None: - os.environ['TZ'] = tz + def change_timezone(time_zone: str) -> None: + os.environ['TZ'] = time_zone time.tzset() # Update the timezone for the process yield change_timezone # Restore the original timezone @@ -60,7 +60,7 @@ async def _create_refresh_token(self) -> str: # Create access token tests @pytest.mark.asyncio - async def test_create_access_token(self, set_timezone: Callable[[str], None]) -> None: + async def test_create_access_token(self, set_timezone: Callable[[str], None]) -> None: # pylint: disable=redefined-outer-name uuid = uuid4() time_now = utcnow() time_now_timestamp = int(time_now.timestamp())