aboutsummaryrefslogtreecommitdiffstats
path: root/solo_tool_integrationtest.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2021-12-26 21:14:40 +0100
committerEddy Pedroni <eddy@0xf7.com>2021-12-26 21:14:40 +0100
commit8622638f99277b43d40b61029dc3c56164d06cae (patch)
tree1a632e3b7969d780abbb0b7575964fcf63d8bb33 /solo_tool_integrationtest.py
parent10aa8140b5e52cc0cf8cea794daf81fb0ffdcad3 (diff)
Changed default behaviour of AB controller
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()