refactor: Update player API test responses to use consistent field names and structures

This commit is contained in:
JSC
2025-07-31 11:35:20 +02:00
parent c13285ca4e
commit f24698e3ff
2 changed files with 281 additions and 145 deletions

View File

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