Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user