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())