diff options
author | Eddy Pedroni <epedroni@pm.me> | 2025-02-22 08:17:29 +0100 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2025-02-22 08:17:29 +0100 |
commit | eaec524a233c9ee11023f21d430bcbc2f4d5a17e (patch) | |
tree | 9028a1879aaa07c373bd51198f6aed60eb6dfd1b /solo-tool-project/test/solo_tool_integrationtest.py | |
parent | b676f88b21ef8046dcd3d9dac4b270007f2b959a (diff) |
Moved nextSong and previousSong to SoloToolController
Diffstat (limited to 'solo-tool-project/test/solo_tool_integrationtest.py')
-rw-r--r-- | solo-tool-project/test/solo_tool_integrationtest.py | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/solo-tool-project/test/solo_tool_integrationtest.py b/solo-tool-project/test/solo_tool_integrationtest.py index 5903abf..ee33468 100644 --- a/solo-tool-project/test/solo_tool_integrationtest.py +++ b/solo-tool-project/test/solo_tool_integrationtest.py @@ -72,28 +72,7 @@ def test_addAndSetSongs(uut, mockPlayer): for i, s in enumerate(songs): uut.setSong(i) assert mockPlayer.currentSong == songs[i] - -def test_nextAndPreviousSong(uut, mockPlayer): - songs = [ - "test.flac", - "test.mp3" - ] - - for s in songs: - uut.addSong(s) - assert mockPlayer.currentSong == None - - uut.nextSong() - assert mockPlayer.currentSong == songs[0] - - uut.previousSong() - assert mockPlayer.currentSong == songs[0] - - uut.nextSong() - assert mockPlayer.currentSong == songs[1] - - uut.nextSong() - assert mockPlayer.currentSong == songs[1] + assert uut.getCurrentSong() == i def test_addAndSetAbLimits(uut, mockPlayer): song = "test.flac" @@ -495,22 +474,6 @@ def test_currentSongNotification(uut): assert receivedValue == 1 called = False - uut.previousSong() - assert called - assert receivedValue == 0 - called = False - - uut.previousSong() - assert not called - - uut.nextSong() - assert called - assert receivedValue == 1 - called = False - - uut.nextSong() - assert not called - def test_currentAbNotification(uut): called = False receivedValue = None |