aboutsummaryrefslogtreecommitdiffstats
path: root/solo_tool_integrationtest.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2022-01-01 15:49:06 +0100
committerEddy Pedroni <eddy@0xf7.com>2022-01-01 15:49:06 +0100
commit328d9ae201cabe8e4189736cd806ecea7b675200 (patch)
tree97f198c5f4b3f3ceff0b39690f703b73d2f69de1 /solo_tool_integrationtest.py
parent71f6a49110b6696ca6ac7956baa4edaa1aaa9527 (diff)
Added previous/next song buttons to MIDI interface, updated known issues
Diffstat (limited to 'solo_tool_integrationtest.py')
-rw-r--r--solo_tool_integrationtest.py24
1 files changed, 24 insertions, 0 deletions
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 = [