aboutsummaryrefslogtreecommitdiffstats
path: root/solo_tool_integrationtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'solo_tool_integrationtest.py')
-rw-r--r--solo_tool_integrationtest.py22
1 files changed, 15 insertions, 7 deletions
diff --git a/solo_tool_integrationtest.py b/solo_tool_integrationtest.py
index 2a2bd46..9321e89 100644
--- a/solo_tool_integrationtest.py
+++ b/solo_tool_integrationtest.py
@@ -165,6 +165,7 @@ def test_storeAbLimitsWithoutSong():
song = "test.flac"
abLimit = [0.2, 0.4]
overflow = abLimit[1] + 0.1
+ default = 0.0
mockPlayer = MockPlayer()
uut = SoloTool(mockPlayer)
mockPlayer.position = overflow
@@ -172,31 +173,38 @@ def test_storeAbLimitsWithoutSong():
uut.storeAbLimits(abLimit[0], abLimit[1])
uut.tick()
- assert mockPlayer.position == overflow
+ assert mockPlayer.position == default
+ mockPlayer.position = overflow
uut.setAbLimit(0)
uut.tick()
- assert mockPlayer.position == overflow
+ assert mockPlayer.position == default
+ mockPlayer.position = overflow
uut.addSong(song)
uut.tick()
- assert mockPlayer.position == overflow
+ assert mockPlayer.position == default
+ mockPlayer.position = overflow
uut.setAbLimit(0)
uut.tick()
- assert mockPlayer.position == overflow
+ assert mockPlayer.position == default
+ mockPlayer.position = overflow
uut.setSong(0)
uut.tick()
- assert mockPlayer.position == overflow
+ assert mockPlayer.position == default
+ mockPlayer.position = overflow
uut.setAbLimit(0)
uut.tick()
- assert mockPlayer.position == overflow
+ assert mockPlayer.position == default
+ mockPlayer.position = overflow
uut.storeAbLimits(abLimit[0], abLimit[1])
uut.tick()
- assert mockPlayer.position == overflow
+ assert mockPlayer.position == default
+ mockPlayer.position = overflow
uut.setAbLimit(0)
uut.tick()