From 663970d0165e226147d95fb92c617714dfbd7553 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 21 Dec 2021 20:26:05 +0100 Subject: Rolled back some refactorings, added some integration tests --- solo_tool_integrationtest.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'solo_tool_integrationtest.py') 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) -- cgit v1.2.3