summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdi Feschiyan <edi.feschiyan@konsulko.com>2020-07-13 16:55:40 +0300
committerEdi Feschiyan <edi.feschiyan@konsulko.com>2020-07-13 16:55:40 +0300
commitcafe8b06e6e25a553c43fc6a0d8ba5d4da1603d4 (patch)
tree1c803a0b34f01fe7a81fe2049a04e531871da81e
parent0b0209fae0492560b5758d1275593ac71954e13a (diff)
weather tests adding dependencies
-rw-r--r--pyagl/tests/test_weather.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyagl/tests/test_weather.py b/pyagl/tests/test_weather.py
index c59f49a..713491c 100644
--- a/pyagl/tests/test_weather.py
+++ b/pyagl/tests/test_weather.py
@@ -48,7 +48,7 @@ async def test_bad_unsubscription(event_loop, service: ws):
resp = await service.afbresponse()
assert resp.status == 'failed'
-
+@pytest.mark.dependency
async def test_subscribe_weather(event_loop, service: ws):
event = 'weather'
msgid = await service.subscribe(event)
@@ -58,6 +58,7 @@ async def test_subscribe_weather(event_loop, service: ws):
assert eventresp.api == f'{service.api}/{event}'
+@pytest.mark.dependency(depends=['test_subscribe_weather'])
async def test_unsubscribe_weather(event_loop, service: ws):
msgid = await service.subscribe('weather')
resp = await service.afbresponse()