aboutsummaryrefslogtreecommitdiffstats
path: root/solo_tool_integrationtest.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2021-12-21 20:26:05 +0100
committerEddy Pedroni <eddy@0xf7.com>2021-12-21 20:26:05 +0100
commit663970d0165e226147d95fb92c617714dfbd7553 (patch)
treee65c2dd0ffdd89ab06b9300d3d5f3428916d1870 /solo_tool_integrationtest.py
parentae8f0a04190c3d13292ad68548f5275507e5812e (diff)
Rolled back some refactorings, added some integration tests
Diffstat (limited to 'solo_tool_integrationtest.py')
-rw-r--r--solo_tool_integrationtest.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/solo_tool_integrationtest.py b/solo_tool_integrationtest.py
index 19bb406..561778b 100644
--- a/solo_tool_integrationtest.py
+++ b/solo_tool_integrationtest.py
@@ -43,6 +43,15 @@ class MockPlayer():
def setCurrentSong(self, path):
self.currentSong = path
+def test_addAndSetSong():
+ song = "/path/to/song"
+ mockPlayer = MockPlayer()
+
+ uut = SoloTool(mockPlayer)
+
+ uut.addSong(song)
+ uut.setSong(0)
+
def test_playerControls():
mockPlayer = MockPlayer()
uut = SoloTool(mockPlayer)