mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: confirm overwrite when importing (#11982)
* feat: confirm overwrite when importing * Skip flaky test
This commit is contained in:
@@ -349,7 +349,7 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
"databases/imported_database.yaml": yaml.safe_dump(database_config),
|
||||
"datasets/imported_dataset.yaml": yaml.safe_dump(dataset_config),
|
||||
}
|
||||
command = v1.ImportDatasetsCommand(contents)
|
||||
command = v1.ImportDatasetsCommand(contents, overwrite=True)
|
||||
command.run()
|
||||
command.run()
|
||||
dataset = (
|
||||
@@ -367,7 +367,7 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
"databases/imported_database.yaml": yaml.safe_dump(database_config),
|
||||
"datasets/imported_dataset.yaml": yaml.safe_dump(new_config),
|
||||
}
|
||||
command = v1.ImportDatasetsCommand(contents)
|
||||
command = v1.ImportDatasetsCommand(contents, overwrite=True)
|
||||
command.run()
|
||||
dataset = (
|
||||
db.session.query(SqlaTable).filter_by(uuid=dataset_config["uuid"]).one()
|
||||
@@ -451,7 +451,7 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
"datasets/imported_dataset.yaml": yaml.safe_dump(dataset_config),
|
||||
"databases/imported_database.yaml": yaml.safe_dump(database_config),
|
||||
}
|
||||
command = v1.ImportDatasetsCommand(contents)
|
||||
command = v1.ImportDatasetsCommand(contents, overwrite=True)
|
||||
command.run()
|
||||
|
||||
database = (
|
||||
|
||||
Reference in New Issue
Block a user