Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -21,7 +21,7 @@ class TestSoundRepository:
|
||||
async def sound_repository(
|
||||
self,
|
||||
test_session: AsyncSession,
|
||||
) -> AsyncGenerator[SoundRepository, None]:
|
||||
) -> AsyncGenerator[SoundRepository]:
|
||||
"""Create a sound repository instance."""
|
||||
yield SoundRepository(test_session)
|
||||
|
||||
@@ -29,7 +29,7 @@ class TestSoundRepository:
|
||||
async def test_sound(
|
||||
self,
|
||||
test_session: AsyncSession,
|
||||
) -> AsyncGenerator[Sound, None]:
|
||||
) -> AsyncGenerator[Sound]:
|
||||
"""Create a test sound."""
|
||||
sound_data = {
|
||||
"name": "Test Sound",
|
||||
@@ -51,7 +51,7 @@ class TestSoundRepository:
|
||||
async def normalized_sound(
|
||||
self,
|
||||
test_session: AsyncSession,
|
||||
) -> AsyncGenerator[Sound, None]:
|
||||
) -> AsyncGenerator[Sound]:
|
||||
"""Create a normalized test sound."""
|
||||
sound_data = {
|
||||
"name": "Normalized Sound",
|
||||
|
||||
Reference in New Issue
Block a user