fix: Add missing commas in function calls and improve code formatting
This commit is contained in:
@@ -529,7 +529,7 @@ class TestPlaylistRepository:
|
||||
)
|
||||
test_session.add(sound)
|
||||
sounds.append(sound)
|
||||
|
||||
|
||||
await test_session.commit()
|
||||
await test_session.refresh(playlist)
|
||||
for sound in sounds:
|
||||
@@ -547,7 +547,7 @@ class TestPlaylistRepository:
|
||||
|
||||
# Verify the final positions
|
||||
playlist_sounds = await playlist_repository.get_playlist_sound_entries(playlist_id)
|
||||
|
||||
|
||||
assert len(playlist_sounds) == 3
|
||||
assert playlist_sounds[0].sound_id == sound_ids[0] # Original sound 0 stays at position 0
|
||||
assert playlist_sounds[0].position == 0
|
||||
@@ -605,7 +605,7 @@ class TestPlaylistRepository:
|
||||
)
|
||||
test_session.add(sound)
|
||||
sounds.append(sound)
|
||||
|
||||
|
||||
await test_session.commit()
|
||||
await test_session.refresh(playlist)
|
||||
for sound in sounds:
|
||||
@@ -623,7 +623,7 @@ class TestPlaylistRepository:
|
||||
|
||||
# Verify the final positions
|
||||
playlist_sounds = await playlist_repository.get_playlist_sound_entries(playlist_id)
|
||||
|
||||
|
||||
assert len(playlist_sounds) == 3
|
||||
assert playlist_sounds[0].sound_id == sound_ids[2] # New sound 2 inserted at position 0
|
||||
assert playlist_sounds[0].position == 0
|
||||
|
||||
Reference in New Issue
Block a user