refactor: Update player API test responses to use consistent field names and structures
This commit is contained in:
@@ -516,10 +516,9 @@ class TestPlayerEndpoints:
|
||||
"status": PlayerStatus.PLAYING.value,
|
||||
"mode": PlayerMode.CONTINUOUS.value,
|
||||
"volume": 50,
|
||||
"current_sound_id": 1,
|
||||
"current_sound_index": 0,
|
||||
"current_sound_position": 5000,
|
||||
"current_sound_duration": 30000,
|
||||
"position_ms": 5000,
|
||||
"duration_ms": 30000,
|
||||
"index": 0,
|
||||
"current_sound": {
|
||||
"id": 1,
|
||||
"name": "Test Song",
|
||||
@@ -530,11 +529,13 @@ class TestPlayerEndpoints:
|
||||
"thumbnail": None,
|
||||
"play_count": 0,
|
||||
},
|
||||
"playlist_id": 1,
|
||||
"playlist_name": "Test Playlist",
|
||||
"playlist_length": 1,
|
||||
"playlist_duration": 30000,
|
||||
"playlist_sounds": [],
|
||||
"playlist": {
|
||||
"id": 1,
|
||||
"name": "Test Playlist",
|
||||
"length": 1,
|
||||
"duration": 30000,
|
||||
"sounds": [],
|
||||
},
|
||||
}
|
||||
mock_player_service.get_state.return_value = mock_state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user