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:
@@ -314,7 +314,7 @@ class TestImportDatabasesCommand(SupersetTestCase):
|
||||
"databases/imported_database.yaml": yaml.safe_dump(database_config),
|
||||
"metadata.yaml": yaml.safe_dump(database_metadata_config),
|
||||
}
|
||||
command = ImportDatabasesCommand(contents)
|
||||
command = ImportDatabasesCommand(contents, overwrite=True)
|
||||
|
||||
# import twice
|
||||
command.run()
|
||||
@@ -332,7 +332,7 @@ class TestImportDatabasesCommand(SupersetTestCase):
|
||||
"databases/imported_database.yaml": yaml.safe_dump(new_config),
|
||||
"metadata.yaml": yaml.safe_dump(database_metadata_config),
|
||||
}
|
||||
command = ImportDatabasesCommand(contents)
|
||||
command = ImportDatabasesCommand(contents, overwrite=True)
|
||||
command.run()
|
||||
|
||||
database = (
|
||||
@@ -389,7 +389,7 @@ class TestImportDatabasesCommand(SupersetTestCase):
|
||||
"datasets/imported_dataset.yaml": yaml.safe_dump(new_config),
|
||||
"metadata.yaml": yaml.safe_dump(database_metadata_config),
|
||||
}
|
||||
command = ImportDatabasesCommand(contents)
|
||||
command = ImportDatabasesCommand(contents, overwrite=True)
|
||||
command.run()
|
||||
|
||||
# the underlying dataset should not be modified by the second import, since
|
||||
|
||||
Reference in New Issue
Block a user