Commit bfbd129
authored
fix: remove troublesome assertion (#549)
Couple of things going on here:
- Without stac-utils/pystac#1171, the resolved collection won't
have a root.
- Even with stac-utils/pystac#1171, the root will be cast to a
`Catalog` by
https://github.com/stac-utils/pystac/blob/9b363db07f19692d319804ccffce23b72d759839/pystac/stac_object.py#L275-L292,
so this assertion would fail even with the preserve_dict
To fix breakages to existing code, we remove the assertion, and assume that stuff will
blow up later if the `root` isn't the correct object type.1 parent 1e2268d commit bfbd129
File tree
4 files changed
+678
-1
lines changed- pystac_client
- tests
- cassettes/test_client
4 files changed
+678
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
| |||
0 commit comments