From 1c896719e14748c7a988eadbc254a3e6c976d03c Mon Sep 17 00:00:00 2001 From: Lyn Nagara Date: Tue, 7 May 2024 15:07:06 -0700 Subject: [PATCH] test: requires_kafka if snuba subscriptions are created required for https://github.com/getsentry/snuba/pull/5868 --- tests/sentry/incidents/test_tasks.py | 4 ++-- tests/sentry/snuba/test_query_subscription_consumer.py | 4 ++-- tests/sentry/snuba/test_subscriptions.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/sentry/incidents/test_tasks.py b/tests/sentry/incidents/test_tasks.py index dcbc81d577676..39bcb0b234524 100644 --- a/tests/sentry/incidents/test_tasks.py +++ b/tests/sentry/incidents/test_tasks.py @@ -37,10 +37,10 @@ from sentry.snuba.subscriptions import create_snuba_query, create_snuba_subscription from sentry.testutils.cases import TestCase from sentry.testutils.helpers.datetime import freeze_time -from sentry.testutils.skips import requires_snuba +from sentry.testutils.skips import requires_kafka, requires_snuba from sentry.utils.http import absolute_uri -pytestmark = [pytest.mark.sentry_metrics, requires_snuba] +pytestmark = [pytest.mark.sentry_metrics, requires_snuba, requires_kafka] class BaseIncidentActivityTest(TestCase): diff --git a/tests/sentry/snuba/test_query_subscription_consumer.py b/tests/sentry/snuba/test_query_subscription_consumer.py index 7051e1713ebdb..0f20e42bcdeeb 100644 --- a/tests/sentry/snuba/test_query_subscription_consumer.py +++ b/tests/sentry/snuba/test_query_subscription_consumer.py @@ -24,10 +24,10 @@ from sentry.snuba.query_subscriptions.run import QuerySubscriptionStrategyFactory from sentry.snuba.subscriptions import create_snuba_query, create_snuba_subscription from sentry.testutils.cases import TestCase -from sentry.testutils.skips import requires_snuba +from sentry.testutils.skips import requires_kafka, requires_snuba from sentry.utils import json -pytestmark = [requires_snuba] +pytestmark = [requires_snuba, requires_kafka] @pytest.mark.snuba_ci diff --git a/tests/sentry/snuba/test_subscriptions.py b/tests/sentry/snuba/test_subscriptions.py index ab75ee7e587e5..df1e21aefd41c 100644 --- a/tests/sentry/snuba/test_subscriptions.py +++ b/tests/sentry/snuba/test_subscriptions.py @@ -13,9 +13,9 @@ update_snuba_subscription, ) from sentry.testutils.cases import TestCase -from sentry.testutils.skips import requires_snuba +from sentry.testutils.skips import requires_kafka, requires_snuba -pytestmark = [pytest.mark.sentry_metrics, requires_snuba] +pytestmark = [pytest.mark.sentry_metrics, requires_snuba, requires_kafka] @pytest.mark.snuba_ci