aboutsummaryrefslogtreecommitdiffstats
path: root/solo-tool-project/test/solo_tool_integrationtest.py
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-02-25 16:14:25 +0100
committerEddy Pedroni <epedroni@pm.me>2025-02-25 16:14:25 +0100
commitb93717904ce75c6fc202528d9cf87eaaf3e449e6 (patch)
treed04d475e430e3ce765610f887d5cdf13e78b484b /solo-tool-project/test/solo_tool_integrationtest.py
parentba41b0bb78c6f58cb210e3577134e46e9f082647 (diff)
Remove stop functionality from player
Diffstat (limited to 'solo-tool-project/test/solo_tool_integrationtest.py')
-rw-r--r--solo-tool-project/test/solo_tool_integrationtest.py30
1 files changed, 7 insertions, 23 deletions
diff --git a/solo-tool-project/test/solo_tool_integrationtest.py b/solo-tool-project/test/solo_tool_integrationtest.py
index fb759b0..f8ed2f1 100644
--- a/solo-tool-project/test/solo_tool_integrationtest.py
+++ b/solo-tool-project/test/solo_tool_integrationtest.py
@@ -26,17 +26,14 @@ def prepared_tmp_path(tmp_path):
return tmp_path
def test_playerControls(uut, mockPlayer):
- assert mockPlayer.state == MockPlayer.STOPPED
- assert uut.playing == False
+ assert not mockPlayer.playing
+ assert not uut.playing
uut.play()
- assert mockPlayer.state == MockPlayer.PLAYING
- assert uut.playing == True
+ assert mockPlayer.playing
+ assert uut.playing
uut.pause()
- assert mockPlayer.state == MockPlayer.PAUSED
- assert uut.playing == False
- uut.stop()
- assert mockPlayer.state == MockPlayer.STOPPED
- assert uut.playing == False
+ assert not mockPlayer.playing
+ assert not uut.playing
assert mockPlayer.rate == 1.0
uut.rate = 0.5
@@ -110,7 +107,6 @@ def test_sanitizePlaybackVolume(uut):
def test_playingStateNotification(uut, mockPlayer):
song = "test.flac"
uut.addSong(song)
- uut.song = 0
called = False
receivedValue = None
@@ -121,7 +117,7 @@ def test_playingStateNotification(uut, mockPlayer):
uut.registerPlayingStateCallback(callback)
- assert mockPlayer.state == MockPlayer.STOPPED
+ assert not mockPlayer.playing
assert not called
uut.play()
@@ -138,18 +134,6 @@ def test_playingStateNotification(uut, mockPlayer):
uut.pause()
assert not called
- uut.play()
- assert called
- assert receivedValue == True
- called = False
-
- uut.stop()
- assert called
- assert receivedValue == False
- called = False
- uut.stop()
- assert not called
-
def test_playbackVolumeNotification(uut, mockPlayer):
song = "test.flac"
uut.addSong(song)