mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: Clean up the examples dashboards (#26158)
This commit is contained in:
committed by
Michael S. Molina
parent
4cba277795
commit
f4873860fc
@@ -981,7 +981,7 @@ class TestChartApi(SupersetTestCase, ApiOwnersTestCaseMixin, InsertChartMixin):
|
||||
rv = self.get_assert_metric(uri, "get_list")
|
||||
self.assertEqual(rv.status_code, 200)
|
||||
data = json.loads(rv.data.decode("utf-8"))
|
||||
self.assertEqual(data["count"], 34)
|
||||
self.assertEqual(data["count"], 33)
|
||||
|
||||
@pytest.mark.usefixtures("load_energy_table_with_slice", "add_dashboard_to_chart")
|
||||
def test_get_charts_dashboards(self):
|
||||
@@ -1447,7 +1447,7 @@ class TestChartApi(SupersetTestCase, ApiOwnersTestCaseMixin, InsertChartMixin):
|
||||
"""
|
||||
Chart API: Test get charts filter
|
||||
"""
|
||||
# Assuming we have 34 sample charts
|
||||
# Assuming we have 33 sample charts
|
||||
self.login(username="admin")
|
||||
arguments = {"page_size": 10, "page": 0}
|
||||
uri = f"api/v1/chart/?q={prison.dumps(arguments)}"
|
||||
@@ -1461,7 +1461,7 @@ class TestChartApi(SupersetTestCase, ApiOwnersTestCaseMixin, InsertChartMixin):
|
||||
rv = self.get_assert_metric(uri, "get_list")
|
||||
self.assertEqual(rv.status_code, 200)
|
||||
data = json.loads(rv.data.decode("utf-8"))
|
||||
self.assertEqual(len(data["result"]), 4)
|
||||
self.assertEqual(len(data["result"]), 3)
|
||||
|
||||
def test_get_charts_no_data_access(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user