mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
fix(assets import): Ensure old datasource ids are not referenced in imported charts (#25086)
This commit is contained in:
@@ -141,6 +141,9 @@ class TestImportAssetsCommand(SupersetTestCase):
|
||||
dataset = chart.table
|
||||
assert str(dataset.uuid) == dataset_config["uuid"]
|
||||
|
||||
assert chart.query_context is None
|
||||
assert json.loads(chart.params)["datasource"] == dataset.uid
|
||||
|
||||
database = dataset.database
|
||||
assert str(database.uuid) == database_config["uuid"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user