diff options
author | Eddy Pedroni <eddy@0xf7.com> | 2022-01-01 10:18:37 +0100 |
---|---|---|
committer | Eddy Pedroni <eddy@0xf7.com> | 2022-01-01 10:18:37 +0100 |
commit | 71f6a49110b6696ca6ac7956baa4edaa1aaa9527 (patch) | |
tree | e16178d2db8c6a8b7459801aab34d46255d4e8f6 /session_manager_unittest.py | |
parent | 9090422b2ba5eab9e4131f9b9281ed83128d977c (diff) |
Added partial Launchpad support, refactored existing files
Diffstat (limited to 'session_manager_unittest.py')
-rw-r--r-- | session_manager_unittest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/session_manager_unittest.py b/session_manager_unittest.py index 30283a1..169aa17 100644 --- a/session_manager_unittest.py +++ b/session_manager_unittest.py @@ -45,7 +45,7 @@ class ABControllerMock: self.limits[song] = list() self.limits[song].append([aLimit, bLimit]) - def getLimits(self, song): + def getStoredLimits(self, song): return self.limits.get(song) def clear(self): @@ -143,7 +143,7 @@ def test_loadAndSaveEmptySession(): songs = playlistMock.getSongs() assert songs == list() for s in songs: - assert abControllerMock.getLimits(s) == None + assert abControllerMock.getStoredLimits(s) == None def test_loadSessionNotAdditive(): playlistMock = PlaylistMock() @@ -157,7 +157,7 @@ def test_loadSessionNotAdditive(): songs = playlistMock.getSongs() assert len(songs) == len(set(songs)) for s in songs: - abLimits = abControllerMock.getLimits(s) + abLimits = abControllerMock.getStoredLimits(s) if abLimits is not None: abLimitStr = [f"[{l[0]}, {l[1]}] " for l in abLimits] assert len(abLimitStr) == len(set(abLimitStr)) |