From 1c59940075bf170bf6e7ffa08d753f6058b0adf8 Mon Sep 17 00:00:00 2001 From: jcass Date: Wed, 18 Jan 2017 17:53:37 +0200 Subject: [PATCH] Fix test for Alarm Clock detection. --- tests/test_webclient.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_webclient.py b/tests/test_webclient.py index e15acaa..677627d 100644 --- a/tests/test_webclient.py +++ b/tests/test_webclient.py @@ -20,7 +20,10 @@ class WebclientTests(unittest.TestCase): 'musicbox': False, 'websocket_host': 'host_mock', 'websocket_port': 999, - } + }, + 'alarmclock': { + 'enabled': True, + } }) self.ext = Extension() @@ -72,7 +75,7 @@ class WebclientTests(unittest.TestCase): assert self.mmw.get_websocket_url(request_mock) == 'wss://127.0.0.1:999/mopidy/ws' def test_has_alarmclock(self): - assert not self.mmw.has_alarm_clock() + assert self.mmw.has_alarm_clock() def test_is_musicbox(self): assert not self.mmw.is_music_box()