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

@@ -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",