From 328d9ae201cabe8e4189736cd806ecea7b675200 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sat, 1 Jan 2022 15:49:06 +0100 Subject: Added previous/next song buttons to MIDI interface, updated known issues --- solo_tool_integrationtest.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'solo_tool_integrationtest.py') diff --git a/solo_tool_integrationtest.py b/solo_tool_integrationtest.py index af0a921..2fa923a 100644 --- a/solo_tool_integrationtest.py +++ b/solo_tool_integrationtest.py @@ -47,6 +47,30 @@ def test_addAndSetSongs(): uut.setSong(i) assert mockPlayer.currentSong == songs[i] +def test_nextAndPreviousSong(): + songs = [ + "test.flac", + "test.mp3" + ] + mockPlayer = MockPlayer() + uut = SoloTool(mockPlayer) + + 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] + def test_addAndSetAbLimits(): song = "test.flac" abLimits = [ -- cgit v1.2.3