mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: complete theme management system import/export (#34850)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
c1a3606774
commit
4695be5cc5
@@ -490,7 +490,7 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
command = v1.ImportDatasetsCommand(contents)
|
||||
with pytest.raises(CommandInvalidError) as excinfo:
|
||||
command.run()
|
||||
assert str(excinfo.value) == "Error importing dataset"
|
||||
assert str(excinfo.value).startswith("Error importing dataset")
|
||||
assert excinfo.value.normalized_messages() == {
|
||||
"metadata.yaml": {"type": ["Must be equal to SqlaTable."]}
|
||||
}
|
||||
@@ -503,7 +503,7 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
command = v1.ImportDatasetsCommand(contents)
|
||||
with pytest.raises(CommandInvalidError) as excinfo:
|
||||
command.run()
|
||||
assert str(excinfo.value) == "Error importing dataset"
|
||||
assert str(excinfo.value).startswith("Error importing dataset")
|
||||
assert excinfo.value.normalized_messages() == {
|
||||
"databases/imported_database.yaml": {
|
||||
"database_name": ["Missing data for required field."],
|
||||
|
||||
Reference in New Issue
Block a user