aboutsummaryrefslogtreecommitdiffstats
path: root/session_manager_unittest.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2021-12-25 23:47:00 +0100
committerEddy Pedroni <eddy@0xf7.com>2021-12-25 23:47:00 +0100
commit10aa8140b5e52cc0cf8cea794daf81fb0ffdcad3 (patch)
tree9bf5e9231ff703b90ed0dd6790588de95d14c2b9 /session_manager_unittest.py
parent71593d438dff1a54986c94b469faa31c4581f6c7 (diff)
Renamed some functions, added known issue
Diffstat (limited to 'session_manager_unittest.py')
-rw-r--r--session_manager_unittest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/session_manager_unittest.py b/session_manager_unittest.py
index 532ae75..30283a1 100644
--- a/session_manager_unittest.py
+++ b/session_manager_unittest.py
@@ -40,7 +40,7 @@ class ABControllerMock:
def __init__(self):
self.limits = dict()
- def addLimits(self, aLimit, bLimit, song="current"):
+ def storeLimits(self, aLimit, bLimit, song="current"):
if song not in self.limits:
self.limits[song] = list()
self.limits[song].append([aLimit, bLimit])
@@ -88,7 +88,7 @@ def test_addAbLimits():
uut = SessionManager(None, abControllerMock)
for i, ab in enumerate(abLimits):
- uut.addLimits(ab[0], ab[1])
+ uut.storeLimits(ab[0], ab[1])
assert abControllerMock.limits["current"][i] == ab
def test_loadSession():
@@ -120,7 +120,7 @@ def test_saveSession():
abLimits = entry["ab_limits"]
if abLimits is not None:
for l in abLimits:
- abControllerMock.addLimits(l[0], l[1], song)
+ abControllerMock.storeLimits(l[0], l[1], song)
sessionFile = MockFile()
uut.saveSession(sessionFile)