diff options
author | Eddy Pedroni <eddy@0xf7.com> | 2021-12-22 11:50:49 +0100 |
---|---|---|
committer | Eddy Pedroni <eddy@0xf7.com> | 2021-12-22 11:50:49 +0100 |
commit | d2c7f3d44cb791a7db9ed9a11b0fa30d1eee5f0e (patch) | |
tree | 8fb1caa5c79b7d4f5c666d42151e0768e00a4cfc /solo_tool_integrationtest.py | |
parent | 96a574d317ccbbff3af3f1a20755c3b79f873510 (diff) |
Added integration test, updated diagram
Diffstat (limited to 'solo_tool_integrationtest.py')
-rw-r--r-- | solo_tool_integrationtest.py | 11 |
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 |