mirror of https://github.com/apache/superset.git
fix: Skips Hive tests that are blocking PRs (#27605)
This commit is contained in:
parent
f274c4785d
commit
718cd64657
|
@ -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
|
||||
|
||||
|
@ -450,9 +459,6 @@ class TestPostChartDataApi(BaseTestChartDataApi):
|
|||
"""
|
||||
Chart data API: Test chart data query with applied time extras
|
||||
"""
|
||||
if backend() == "hive":
|
||||
return
|
||||
|
||||
self.query_context_payload["queries"][0]["applied_time_extras"] = {
|
||||
"__time_range": "100 years ago : now",
|
||||
"__time_origin": "now",
|
||||
|
@ -751,9 +757,6 @@ class TestPostChartDataApi(BaseTestChartDataApi):
|
|||
"""
|
||||
Chart data API: Test chart data query non-JSON format (async)
|
||||
"""
|
||||
if backend() == "hive":
|
||||
return
|
||||
|
||||
app._got_first_request = False
|
||||
async_query_manager_factory.init_app(app)
|
||||
self.query_context_payload["result_type"] = "results"
|
||||
|
|
Loading…
Reference in New Issue