refactor: improve code readability by formatting arguments across multiple files
Test / test (push) Successful in 15s

This commit is contained in:
Artem Kashaev
2025-12-01 16:25:30 +05:00
parent dc0046c730
commit 1dd7c2f2b8
22 changed files with 161 additions and 49 deletions
+10 -3
View File
@@ -50,7 +50,8 @@ def jwt_service() -> JWTService:
@pytest.mark.asyncio
async def test_authenticate_success(
password_hasher: PasswordHasher, jwt_service: JWTService,
password_hasher: PasswordHasher,
jwt_service: JWTService,
) -> None:
hashed = password_hasher.hash("StrongPass123")
user = User(email="user@example.com", hashed_password=hashed, name="Alice", is_active=True)
@@ -103,7 +104,10 @@ async def test_refresh_tokens_returns_new_pair(
jwt_service: JWTService,
) -> None:
user = User(
email="refresh@example.com", hashed_password="hashed", name="Refresh", is_active=True,
email="refresh@example.com",
hashed_password="hashed",
name="Refresh",
is_active=True,
)
user.id = 7
service = AuthService(StubUserRepository(user), password_hasher, jwt_service)
@@ -121,7 +125,10 @@ async def test_refresh_tokens_rejects_access_token(
jwt_service: JWTService,
) -> None:
user = User(
email="refresh@example.com", hashed_password="hashed", name="Refresh", is_active=True,
email="refresh@example.com",
hashed_password="hashed",
name="Refresh",
is_active=True,
)
user.id = 9
service = AuthService(StubUserRepository(user), password_hasher, jwt_service)