summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyagl/tests/test_geoclue.py3
-rw-r--r--pyagl/tests/test_homescreen.py8
2 files changed, 7 insertions, 4 deletions
diff --git a/pyagl/tests/test_geoclue.py b/pyagl/tests/test_geoclue.py
index 64875d8..f63533e 100644
--- a/pyagl/tests/test_geoclue.py
+++ b/pyagl/tests/test_geoclue.py
@@ -35,6 +35,9 @@ async def test_subscribe(event_loop, service: gcs):
msgid = await service.subscribe()
resp = await service.afbresponse()
assert resp.status == 'success'
+ event = await service.afbresponse()
+ assert event.type == AFBT.EVENT # subscription immediately emits geoclue event
+ assert event.api == f'{service.api}/location'
async def test_unsubscribe(event_loop, service: gcs):
diff --git a/pyagl/tests/test_homescreen.py b/pyagl/tests/test_homescreen.py
index 2935bfa..1ac7330 100644
--- a/pyagl/tests/test_homescreen.py
+++ b/pyagl/tests/test_homescreen.py
@@ -24,10 +24,10 @@ async def service():
await svc.websocket.close()
-async def test_tap_shortcut_media(event_loop, service: hcs):
- msgid = await service.tap_shortcut('mediaplayer')
- resp = await service.afbresponse()
- assert resp.status == 'success'
+# async def test_tap_shortcut_media(event_loop, service: hcs):
+# msgid = await service.tap_shortcut('mediaplayer')
+# resp = await service.afbresponse()
+# assert resp.status == 'success'
async def test_subscribe(event_loop, service: hcs):