mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +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
@@ -313,7 +313,7 @@ class TestImportChartsCommand(SupersetTestCase):
|
||||
command = ImportChartsCommand(contents)
|
||||
with pytest.raises(CommandInvalidError) as excinfo:
|
||||
command.run()
|
||||
assert str(excinfo.value) == "Error importing chart"
|
||||
assert str(excinfo.value).startswith("Error importing chart")
|
||||
assert excinfo.value.normalized_messages() == {
|
||||
"metadata.yaml": {"type": ["Must be equal to Slice."]}
|
||||
}
|
||||
@@ -326,7 +326,7 @@ class TestImportChartsCommand(SupersetTestCase):
|
||||
command = ImportChartsCommand(contents)
|
||||
with pytest.raises(CommandInvalidError) as excinfo:
|
||||
command.run()
|
||||
assert str(excinfo.value) == "Error importing chart"
|
||||
assert str(excinfo.value).startswith("Error importing chart")
|
||||
assert excinfo.value.normalized_messages() == {
|
||||
"databases/imported_database.yaml": {
|
||||
"database_name": ["Missing data for required field."],
|
||||
|
||||
Reference in New Issue
Block a user