From 8622638f99277b43d40b61029dc3c56164d06cae Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sun, 26 Dec 2021 21:14:40 +0100 Subject: Changed default behaviour of AB controller --- solo_tool_integrationtest.py | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'solo_tool_integrationtest.py') 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() -- cgit v1.2.3