refactor: Rename global current playlist methods for clarity and consistency
This commit is contained in:
@@ -464,7 +464,7 @@ class TestPlaylistService:
|
||||
|
||||
# Verify main playlist is now fallback current (main playlist doesn't have is_current=True)
|
||||
# The service returns main playlist when no current is set
|
||||
current = await playlist_service.get_current_playlist(user_id)
|
||||
current = await playlist_service.get_current_playlist()
|
||||
assert current.is_main is True
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@@ -754,7 +754,7 @@ class TestPlaylistService:
|
||||
|
||||
# Set test_playlist as current
|
||||
updated_playlist = await playlist_service.set_current_playlist(
|
||||
test_playlist_id, user_id,
|
||||
test_playlist_id,
|
||||
)
|
||||
|
||||
assert updated_playlist.is_current is True
|
||||
@@ -804,10 +804,10 @@ class TestPlaylistService:
|
||||
assert current_playlist.is_current is True
|
||||
|
||||
# Unset current playlist
|
||||
await playlist_service.unset_current_playlist(user_id)
|
||||
await playlist_service.unset_current_playlist()
|
||||
|
||||
# Verify get_current_playlist returns main playlist as fallback
|
||||
current = await playlist_service.get_current_playlist(user_id)
|
||||
current = await playlist_service.get_current_playlist()
|
||||
assert current.id == main_playlist_id
|
||||
assert current.is_main is True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user