feat: Update player state tests to include previous volume and adjust volume assertions
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user