aboutsummaryrefslogtreecommitdiffstats
path: root/solo_tool_integrationtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'solo_tool_integrationtest.py')
-rw-r--r--solo_tool_integrationtest.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/solo_tool_integrationtest.py b/solo_tool_integrationtest.py
index bbc98a8..2ed2449 100644
--- a/solo_tool_integrationtest.py
+++ b/solo_tool_integrationtest.py
@@ -218,3 +218,14 @@ def test_loadAndSaveSession(tmp_path):
savedSession = json.loads(f.read())
assert loadedSession == savedSession
+
+def test_addInexistentFile():
+ song = "not/a/real/file"
+
+ mockPlayer = MockPlayer()
+ uut = SoloTool(mockPlayer)
+
+ uut.addSong(song)
+ uut.setSong(0)
+
+ assert mockPlayer.currentSong == None