Refactor code structure for improved readability and maintainability
Some checks failed
Backend CI / lint (push) Failing after 4m51s
Backend CI / test (push) Failing after 4m35s

This commit is contained in:
JSC
2025-08-20 11:37:28 +02:00
parent 9653062003
commit 821093f64f
15 changed files with 1897 additions and 217 deletions

View File

@@ -19,7 +19,7 @@ class TestUserOauthRepository:
async def user_oauth_repository(
self,
test_session: AsyncSession,
) -> AsyncGenerator[UserOauthRepository, None]:
) -> AsyncGenerator[UserOauthRepository]:
"""Create a user OAuth repository instance."""
yield UserOauthRepository(test_session)
@@ -37,7 +37,7 @@ class TestUserOauthRepository:
self,
test_session: AsyncSession,
test_user_id: int,
) -> AsyncGenerator[UserOauth, None]:
) -> AsyncGenerator[UserOauth]:
"""Create a test OAuth record."""
oauth_data = {
"user_id": test_user_id,