mirror of
https://github.com/apache/superset.git
synced 2026-07-21 06:05:46 +00:00
Merge branch 'master' into hughhhh/dashboard-export-spec-review
This commit is contained in:
@@ -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