mirror of
https://github.com/apache/superset.git
synced 2026-04-17 07:05:04 +00:00
fix(import): only import FORMULA annotations (#26652)
This commit is contained in:
committed by
GitHub
parent
1283803844
commit
e86d4d3c92
@@ -160,7 +160,8 @@ def test_import_dashboards_versioned_export(import_dashboards_command, app_conte
|
||||
|
||||
runner = app.test_cli_runner()
|
||||
response = runner.invoke(
|
||||
superset.cli.importexport.import_dashboards, ("-p", "dashboards.json")
|
||||
superset.cli.importexport.import_dashboards,
|
||||
("-p", "dashboards.json", "-u", "admin"),
|
||||
)
|
||||
|
||||
assert response.exit_code == 0
|
||||
@@ -174,7 +175,8 @@ def test_import_dashboards_versioned_export(import_dashboards_command, app_conte
|
||||
|
||||
runner = app.test_cli_runner()
|
||||
response = runner.invoke(
|
||||
superset.cli.importexport.import_dashboards, ("-p", "dashboards.zip")
|
||||
superset.cli.importexport.import_dashboards,
|
||||
("-p", "dashboards.zip", "-u", "admin"),
|
||||
)
|
||||
|
||||
assert response.exit_code == 0
|
||||
@@ -205,7 +207,8 @@ def test_failing_import_dashboards_versioned_export(
|
||||
|
||||
runner = app.test_cli_runner()
|
||||
response = runner.invoke(
|
||||
superset.cli.importexport.import_dashboards, ("-p", "dashboards.json")
|
||||
superset.cli.importexport.import_dashboards,
|
||||
("-p", "dashboards.json", "-u", "admin"),
|
||||
)
|
||||
|
||||
assert_cli_fails_properly(response, caplog)
|
||||
@@ -217,7 +220,8 @@ def test_failing_import_dashboards_versioned_export(
|
||||
|
||||
runner = app.test_cli_runner()
|
||||
response = runner.invoke(
|
||||
superset.cli.importexport.import_dashboards, ("-p", "dashboards.zip")
|
||||
superset.cli.importexport.import_dashboards,
|
||||
("-p", "dashboards.zip", "-u", "admin"),
|
||||
)
|
||||
|
||||
assert_cli_fails_properly(response, caplog)
|
||||
|
||||
Reference in New Issue
Block a user