From 71f6a49110b6696ca6ac7956baa4edaa1aaa9527 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sat, 1 Jan 2022 10:18:37 +0100 Subject: Added partial Launchpad support, refactored existing files --- 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 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)) -- cgit v1.2.3