mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
chore: Re-enable skipped tests (#31795)
This commit is contained in:
committed by
GitHub
parent
ab6045691e
commit
547b8b9314
@@ -291,7 +291,8 @@ class TestChartApi(ApiOwnersTestCaseMixin, InsertChartMixin, SupersetTestCase):
|
||||
|
||||
# rollback changes
|
||||
for association in tag_associations:
|
||||
db.session.delete(association)
|
||||
if db.session.query(TaggedObject).filter_by(id=association.id).first():
|
||||
db.session.delete(association)
|
||||
for chart in charts:
|
||||
db.session.delete(chart)
|
||||
db.session.commit()
|
||||
@@ -1035,7 +1036,6 @@ class TestChartApi(ApiOwnersTestCaseMixin, InsertChartMixin, SupersetTestCase):
|
||||
assert response == expected_response
|
||||
|
||||
@pytest.mark.usefixtures("load_world_bank_dashboard_with_slices")
|
||||
@pytest.mark.skip(reason="This test will be changed to use the api/v1/data")
|
||||
def test_get_chart(self):
|
||||
"""
|
||||
Chart API: Test get chart
|
||||
@@ -1171,7 +1171,6 @@ class TestChartApi(ApiOwnersTestCaseMixin, InsertChartMixin, SupersetTestCase):
|
||||
assert result[0]["slice_name"] == self.chart.slice_name
|
||||
|
||||
@pytest.mark.usefixtures("create_charts_some_with_tags")
|
||||
@pytest.mark.skip(reason="This test will be changed to use the api/v1/data")
|
||||
def test_get_charts_tag_filters(self):
|
||||
"""
|
||||
Chart API: Test get charts with tag filters
|
||||
@@ -1972,7 +1971,7 @@ class TestChartApi(ApiOwnersTestCaseMixin, InsertChartMixin, SupersetTestCase):
|
||||
|
||||
@parameterized.expand(
|
||||
[
|
||||
"Pivot Table v2", # Non-legacy chart
|
||||
"Pivot Table v2", # Non-legacy charts
|
||||
],
|
||||
)
|
||||
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
|
||||
@@ -2097,7 +2096,6 @@ class TestChartApi(ApiOwnersTestCaseMixin, InsertChartMixin, SupersetTestCase):
|
||||
}
|
||||
|
||||
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
|
||||
@pytest.mark.skip(reason="This test will be changed to use the api/v1/data")
|
||||
def test_warm_up_cache_no_datasource(self) -> None:
|
||||
self.login(ADMIN_USERNAME)
|
||||
slc = self.get_slice("Top 10 Girl Name Share")
|
||||
@@ -2118,7 +2116,7 @@ class TestChartApi(ApiOwnersTestCaseMixin, InsertChartMixin, SupersetTestCase):
|
||||
"result": [
|
||||
{
|
||||
"chart_id": slc.id,
|
||||
"viz_error": "Chart's datasource does not exist",
|
||||
"viz_error": "Chart's query context does not exist",
|
||||
"viz_status": None,
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user