From 10aa8140b5e52cc0cf8cea794daf81fb0ffdcad3 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sat, 25 Dec 2021 23:47:00 +0100 Subject: Renamed some functions, added known issue --- session_manager_unittest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'session_manager_unittest.py') 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) -- cgit v1.2.3