mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-07 23:19:14 +00:00
test(import): account for space id remapping
Issue: #428 User-Visible: no
This commit is contained in:
committed by
claude[bot]
parent
2c4dd3f638
commit
972b0e0c0a
@@ -190,7 +190,16 @@ def test_issue_428_missing_decor_asset_round_trips_in_every_export_mode(
|
||||
for item in space.get("decor") or []
|
||||
if item.get("kind") == "image"
|
||||
]
|
||||
assert imported_images == [shape]
|
||||
assert len(imported_images) == 1
|
||||
# A one-space import intentionally allocates local object ids. The portable
|
||||
# asset identity and every visual field must survive that namespace remap.
|
||||
imported_without_local_id = {
|
||||
key: value for key, value in imported_images[0].items() if key != "id"
|
||||
}
|
||||
source_without_local_id = {
|
||||
key: value for key, value in shape.items() if key != "id"
|
||||
}
|
||||
assert imported_without_local_id == source_without_local_id
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
Reference in New Issue
Block a user