refactor copy filter_scopes and add tests (#9224)

* refactor copy filter_scopes and add tests

* fix review comments
This commit is contained in:
Grace Guo
2020-03-02 12:55:30 -08:00
committed by GitHub
parent 7b2c2e8a33
commit ccd6e44edf
5 changed files with 82 additions and 33 deletions

View File

@@ -360,7 +360,7 @@ class ImportExportTests(SupersetTestCase):
dash_with_1_slice.position_json = """
{{"DASHBOARD_VERSION_KEY": "v2",
"DASHBOARD_CHART_TYPE-{0}": {{
"type": "DASHBOARD_CHART_TYPE",
"type": "CHART",
"id": {0},
"children": [],
"meta": {{
@@ -540,7 +540,7 @@ class ImportExportTests(SupersetTestCase):
dash_with_1_slice.position_json = """
{{"DASHBOARD_VERSION_KEY": "v2",
"DASHBOARD_CHART_TYPE-{0}": {{
"type": "DASHBOARD_CHART_TYPE",
"type": "CHART",
"id": {0},
"children": [],
"meta": {{