mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
Revert "chore(spa refactor): refactoring dashboard to use api's instead of bootstrapdata (#13306)"
This reverts commit 4bb29b6f04.
This commit is contained in:
@@ -238,22 +238,6 @@ class TestDashboardApi(SupersetTestCase, ApiOwnersTestCaseMixin, InsertChartMixi
|
||||
data["result"][0]["slice_name"], dashboard.slices[0].slice_name
|
||||
)
|
||||
|
||||
@pytest.mark.usefixtures("create_dashboards")
|
||||
def test_get_dashboard_charts_by_slug(self):
|
||||
"""
|
||||
Dashboard API: Test getting charts belonging to a dashboard
|
||||
"""
|
||||
self.login(username="admin")
|
||||
dashboard = self.dashboards[0]
|
||||
uri = f"api/v1/dashboard/{dashboard.slug}/charts"
|
||||
response = self.get_assert_metric(uri, "get_charts")
|
||||
self.assertEqual(response.status_code, 200)
|
||||
data = json.loads(response.data.decode("utf-8"))
|
||||
self.assertEqual(len(data["result"]), 1)
|
||||
self.assertEqual(
|
||||
data["result"][0]["slice_name"], dashboard.slices[0].slice_name
|
||||
)
|
||||
|
||||
@pytest.mark.usefixtures("create_dashboards")
|
||||
def test_get_dashboard_charts_not_found(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user