diff --git a/tests/integration_tests/charts/data/api_tests.py b/tests/integration_tests/charts/data/api_tests.py index 67586b33f86..7e5d4fda7f3 100644 --- a/tests/integration_tests/charts/data/api_tests.py +++ b/tests/integration_tests/charts/data/api_tests.py @@ -62,6 +62,8 @@ from superset.common.chart_data import ChartDataResultFormat, ChartDataResultTyp from tests.common.query_context_generator import ANNOTATION_LAYERS from tests.integration_tests.fixtures.query_context import get_query_context +from tests.integration_tests.test_app import app + CHART_DATA_URI = "api/v1/chart/data" CHARTS_FIXTURE_COUNT = 10 @@ -79,6 +81,13 @@ INCOMPATIBLE_ADHOC_COLUMN_FIXTURE: AdhocColumn = { } +@pytest.fixture(autouse=True) +def skip_by_backend(): + with app.app_context(): + if backend() == "hive": + pytest.skip("Skipping tests for Hive backend") + + class BaseTestChartDataApi(SupersetTestCase): query_context_payload_template = None