mirror of
https://github.com/apache/superset.git
synced 2026-07-20 05:36:00 +00:00
Merge branch 'master' into hughhhh/dashboard-export-spec-review
This commit is contained in:
@@ -583,6 +583,7 @@ class SupersetTestCase(TestCase):
|
||||
published: bool = False,
|
||||
certified_by: Optional[str] = None,
|
||||
certification_details: Optional[str] = None,
|
||||
desc: Optional[str] = None,
|
||||
) -> Dashboard:
|
||||
obj_owners = list() # noqa: C408
|
||||
obj_roles = list() # noqa: C408
|
||||
@@ -606,6 +607,7 @@ class SupersetTestCase(TestCase):
|
||||
dashboard = Dashboard(
|
||||
dashboard_title=dashboard_title,
|
||||
slug=slug,
|
||||
description=desc,
|
||||
owners=obj_owners,
|
||||
roles=obj_roles,
|
||||
position_json=position_json,
|
||||
|
||||
@@ -81,6 +81,7 @@ class TestDashboardApi(ApiOwnersTestCaseMixin, InsertChartMixin, SupersetTestCas
|
||||
dashboard_data = {
|
||||
"dashboard_title": "title1_changed",
|
||||
"slug": "slug1_changed",
|
||||
"description": "desc_changed",
|
||||
"position_json": '{"b": "B"}',
|
||||
"css": "css_changed",
|
||||
"json_metadata": '{"refresh_frequency": 30, "timed_refresh_immune_slices": [], "expanded_slices": {}, "color_scheme": "", "label_colors": {}, "shared_label_colors": [], "map_label_colors": {}, "color_scheme_domain": [], "cross_filters_enabled": false}', # noqa: E501
|
||||
@@ -538,7 +539,7 @@ class TestDashboardApi(ApiOwnersTestCaseMixin, InsertChartMixin, SupersetTestCas
|
||||
"""
|
||||
admin = self.get_user("admin")
|
||||
dashboard = self.insert_dashboard(
|
||||
"title", "slug1", [admin.id], created_by=admin
|
||||
"title", "slug1", [admin.id], created_by=admin, desc="description"
|
||||
)
|
||||
self.login(ADMIN_USERNAME)
|
||||
uri = f"api/v1/dashboard/{dashboard.id}"
|
||||
@@ -578,6 +579,7 @@ class TestDashboardApi(ApiOwnersTestCaseMixin, InsertChartMixin, SupersetTestCas
|
||||
"thumbnail_url": dashboard.thumbnail_url,
|
||||
"is_managed_externally": False,
|
||||
"theme": None,
|
||||
"description": "description",
|
||||
}
|
||||
data = json.loads(rv.data.decode("utf-8"))
|
||||
assert "changed_on" in data["result"]
|
||||
|
||||
Reference in New Issue
Block a user