fix: complete theme management system import/export (#34850)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Maxime Beauchemin
2025-09-01 15:44:01 -07:00
committed by GitHub
parent c1a3606774
commit 4695be5cc5
19 changed files with 377 additions and 303 deletions

View File

@@ -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."],