From c990b0231c425743622368399aaf3b3b7231c481 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sat, 22 Feb 2025 10:29:50 +0100 Subject: Refactor to use properties for song list and current song --- .../test/solo_tool_controller_integrationtest.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'solo-tool-project/test/solo_tool_controller_integrationtest.py') diff --git a/solo-tool-project/test/solo_tool_controller_integrationtest.py b/solo-tool-project/test/solo_tool_controller_integrationtest.py index c161c70..9311483 100644 --- a/solo-tool-project/test/solo_tool_controller_integrationtest.py +++ b/solo-tool-project/test/solo_tool_controller_integrationtest.py @@ -36,22 +36,22 @@ def test_previousSong(uut, soloTool): soloTool.registerCurrentSongCallback(callback) - soloTool.getCurrentSong() == None + soloTool.song == None assert not called uut.previousSong() - soloTool.getCurrentSong() == 0 + soloTool.song == 0 assert called assert receivedValue == 0 called = False uut.previousSong() - soloTool.getCurrentSong() == 0 + soloTool.song == 0 assert not called - soloTool.setSong(1) + soloTool.song = 1 uut.previousSong() - soloTool.getCurrentSong() == 0 + soloTool.song == 0 assert called assert receivedValue == 0 called = False @@ -66,21 +66,21 @@ def test_nextSong(uut, soloTool): soloTool.registerCurrentSongCallback(callback) - soloTool.getCurrentSong() == None + soloTool.song == None assert not called uut.nextSong() - soloTool.getCurrentSong() == 0 + soloTool.song == 0 assert called assert receivedValue == 0 called = False uut.nextSong() - soloTool.getCurrentSong() == 1 + soloTool.song == 1 assert called assert receivedValue == 1 called = False uut.nextSong() - soloTool.getCurrentSong() == 1 + soloTool.song == 1 assert not called -- cgit v1.2.3