aboutsummaryrefslogtreecommitdiffstats
path: root/session_manager_unittest.py
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2021-12-21 18:39:49 +0100
committerEddy Pedroni <eddy@0xf7.com>2021-12-21 18:39:49 +0100
commit9ee7ee992d468b4f354ac16c34747e0c31d7b656 (patch)
tree8c9f46bb8478fd9a6a3f9b194921fb9b1e0a3592 /session_manager_unittest.py
parent6eb42e6d4468ad161281125c77a41063f93380e1 (diff)
Minor fixes to tests
Diffstat (limited to 'session_manager_unittest.py')
-rw-r--r--session_manager_unittest.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/session_manager_unittest.py b/session_manager_unittest.py
index 0169132..7fb8c55 100644
--- a/session_manager_unittest.py
+++ b/session_manager_unittest.py
@@ -42,8 +42,8 @@ class ABControllerMock:
self.limits[song] = list()
self.limits[song].append([aLimit, bLimit])
- def getLimits(self):
- return self.limits
+ def getLimits(self, song):
+ return self.limits.get(song)
class MockFile:
def __init__(self, init=""):
@@ -133,5 +133,8 @@ def test_loadAndSaveEmptySession():
assert loads(sessionFile.read()) == list()
uut.loadSession(sessionFile)
- assert playlistMock.getSongs() == list()
- assert abControllerMock.getLimits() == dict()
+
+ songs = playlistMock.getSongs()
+ assert songs == list()
+ for s in songs:
+ assert abControllerMock.getLimits(s) == None