summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2021-09-11 23:09:06 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2021-09-11 23:09:06 +0300
commit89fab3daa678a78c6db3f831d73d7e40e77f184f (patch)
tree205a00d67d9dea044fc85ba4f3a042b3bd3f2f81
parent2a4eb36499f976e4da6b4ff18880b8292d067975 (diff)
downloadapscheduler-89fab3daa678a78c6db3f831d73d7e40e77f184f.tar.gz
Applied the external_service mark to redis + mqtt tests too
-rw-r--r--tests/test_eventbrokers.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_eventbrokers.py b/tests/test_eventbrokers.py
index 6a0f45d..f1f88c0 100644
--- a/tests/test_eventbrokers.py
+++ b/tests/test_eventbrokers.py
@@ -59,8 +59,10 @@ async def asyncpg_broker(serializer: Serializer) -> AsyncEventBroker:
@pytest.fixture(params=[
pytest.param(pytest.lazy_fixture('local_broker'), id='local'),
- pytest.param(pytest.lazy_fixture('redis_broker'), id='redis'),
- pytest.param(pytest.lazy_fixture('mqtt_broker'), id='mqtt')
+ pytest.param(pytest.lazy_fixture('redis_broker'), id='redis',
+ marks=[pytest.mark.external_service]),
+ pytest.param(pytest.lazy_fixture('mqtt_broker'), id='mqtt',
+ marks=[pytest.mark.external_service])
])
def broker(request: FixtureRequest) -> Callable[[], EventBroker]:
return request.param
@@ -68,7 +70,8 @@ def broker(request: FixtureRequest) -> Callable[[], EventBroker]:
@pytest.fixture(params=[
pytest.param(pytest.lazy_fixture('local_async_broker'), id='local'),
- pytest.param(pytest.lazy_fixture('asyncpg_broker'), id='asyncpg')
+ pytest.param(pytest.lazy_fixture('asyncpg_broker'), id='asyncpg',
+ marks=[pytest.mark.external_service])
])
def async_broker(request: FixtureRequest) -> Callable[[], AsyncEventBroker]:
return request.param