feat: Update player state tests to include previous volume and adjust volume assertions
Some checks failed
Backend CI / lint (push) Failing after 5m0s
Backend CI / test (push) Successful in 3m46s

This commit is contained in:
JSC
2025-08-12 22:58:47 +02:00
parent c69a45c9b4
commit cba1653565
3 changed files with 8 additions and 5 deletions

View File

@@ -30,7 +30,8 @@ class TestPlayerState:
assert state.status == PlayerStatus.STOPPED
assert state.mode == PlayerMode.CONTINUOUS
assert state.volume == 50
assert state.volume == 80
assert state.previous_volume == 80
assert state.current_sound_id is None
assert state.current_sound_index is None
assert state.current_sound_position == 0
@@ -216,7 +217,7 @@ class TestPlayerService:
assert player_service._loop is not None
assert player_service._position_thread is not None
assert player_service._position_thread.daemon is True
player_service._player.audio_set_volume.assert_called_once_with(50)
player_service._player.audio_set_volume.assert_called_once_with(80)
@pytest.mark.asyncio
async def test_stop_cleans_up_service(self, player_service) -> None: