mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: complete theme management system import/export (#34850)
Co-authored-by: Claude <noreply@anthropic.com>
(cherry picked from commit 4695be5cc5)
This commit is contained in:
committed by
Joe Li
parent
a3a2c494cc
commit
1c95ea5ab8
@@ -232,7 +232,7 @@ class TestImportSavedQueriesCommand(SupersetTestCase):
|
||||
command = ImportSavedQueriesCommand(contents)
|
||||
with pytest.raises(CommandInvalidError) as excinfo:
|
||||
command.run()
|
||||
assert str(excinfo.value) == "Error importing saved_queries"
|
||||
assert str(excinfo.value).startswith("Error importing saved_queries")
|
||||
assert excinfo.value.normalized_messages() == {
|
||||
"metadata.yaml": {"type": ["Must be equal to SavedQuery."]}
|
||||
}
|
||||
@@ -245,7 +245,7 @@ class TestImportSavedQueriesCommand(SupersetTestCase):
|
||||
command = ImportSavedQueriesCommand(contents)
|
||||
with pytest.raises(CommandInvalidError) as excinfo:
|
||||
command.run()
|
||||
assert str(excinfo.value) == "Error importing saved_queries"
|
||||
assert str(excinfo.value).startswith("Error importing saved_queries")
|
||||
assert excinfo.value.normalized_messages() == {
|
||||
"databases/imported_database.yaml": {
|
||||
"database_name": ["Missing data for required field."],
|
||||
|
||||
Reference in New Issue
Block a user