aboutsummaryrefslogtreecommitdiffstats
path: root/abcontroller_unittest.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2021-12-21 18:24:55 +0100
committerEddy Pedroni <eddy@0xf7.com>2021-12-21 18:24:55 +0100
commit6eb42e6d4468ad161281125c77a41063f93380e1 (patch)
tree35ad2edeb7058ad60f47affb1b27dfac3fa62bac /abcontroller_unittest.py
parentc1bfcc6064b3a22c76b986d9339daf6cbd403c80 (diff)
Added session manager, renamed solo-tool.py
Diffstat (limited to 'abcontroller_unittest.py')
-rw-r--r--abcontroller_unittest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/abcontroller_unittest.py b/abcontroller_unittest.py
index 839c88a..42eaabc 100644
--- a/abcontroller_unittest.py
+++ b/abcontroller_unittest.py
@@ -37,6 +37,7 @@ def test_oneSetOfLimits():
uut.setCurrentLimits(0)
checkLimits(uut, abLimits.a, abLimits.b)
+ assert uut.getLimits(song) == [abLimits]
def test_multipleSetsOfLimits():
song = "/path/to/song"
@@ -55,6 +56,8 @@ def test_multipleSetsOfLimits():
uut.setCurrentLimits(i)
checkLimits(uut, l.a, l.b)
+ assert uut.getLimits(song) == abLimits
+
def test_multipleSongs():
songs = [
"/path/to/song",
@@ -73,6 +76,7 @@ def test_multipleSongs():
uut.setCurrentLimits(0)
checkLimits(uut, abLimits[i].a, abLimits[i].b)
+ assert uut.getLimits(s) == [abLimits[i]]
def test_disableAbRepeat():
song = "/path/to/song"