From eaec524a233c9ee11023f21d430bcbc2f4d5a17e Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sat, 22 Feb 2025 08:17:29 +0100 Subject: Moved nextSong and previousSong to SoloToolController --- .../test/solo_tool_integrationtest.py | 39 +--------------------- 1 file changed, 1 insertion(+), 38 deletions(-) (limited to 'solo-tool-project/test/solo_tool_integrationtest.py') 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 -- cgit v1.2.3