From d2c7f3d44cb791a7db9ed9a11b0fa30d1eee5f0e Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Wed, 22 Dec 2021 11:50:49 +0100 Subject: Added integration test, updated diagram --- solo_tool_integrationtest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'solo_tool_integrationtest.py') 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 -- cgit v1.2.3