diff options
author | Eddy Pedroni <epedroni@pm.me> | 2025-02-22 10:29:50 +0100 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2025-02-22 10:29:50 +0100 |
commit | c990b0231c425743622368399aaf3b3b7231c481 (patch) | |
tree | 9716bcc6d03bb5f7e24ec9fd3ebaca758ac4f1fb /solo-tool-project/test/solo_tool_controller_integrationtest.py | |
parent | 86660e2498e17e51be77e41be4b53cf0c734f90b (diff) |
Refactor to use properties for song list and current song
Diffstat (limited to 'solo-tool-project/test/solo_tool_controller_integrationtest.py')
-rw-r--r-- | solo-tool-project/test/solo_tool_controller_integrationtest.py | 18 |
1 files changed, 9 insertions, 9 deletions
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 |