Skip to content

Commit 9ea97f4

Browse files
committed
fix: add test
1 parent bb26d32 commit 9ea97f4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_read.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@
77
async def test_read(examples: Path) -> None:
88
item = Item.from_dict(await rustac.read(str(examples / "simple-item.json")))
99
item.validate()
10+
11+
12+
async def test_asset_ordering(examples: Path) -> None:
13+
# Not a perfect test but should be good enough for https://github.com/stac-utils/rustac-py/issues/85
14+
lists = []
15+
for _ in range(10):
16+
item = await rustac.read(str(examples / "extended-item.json"))
17+
lists.append(list(item["assets"].keys()))
18+
for sublist in lists[1:]:
19+
assert lists[0] == sublist

0 commit comments

Comments
 (0)