mirror of
https://github.com/apache/superset.git
synced 2026-05-11 02:45:46 +00:00
fix(import): only import FORMULA annotations (#26652)
This commit is contained in:
committed by
Michael S. Molina
parent
c562d72e1a
commit
1391932d1d
@@ -235,7 +235,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
|
||||
@@ -249,7 +250,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
|
||||
@@ -283,7 +285,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)
|
||||
@@ -295,7 +298,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