We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9729a5b commit b492bceCopy full SHA for b492bce
tests/test_writing.py
@@ -59,10 +59,7 @@ def validate_catalog_link_type(
59
) -> None:
60
cat_dict = pystac.StacIO.default().read_json(href)
61
cat = pystac.read_file(href)
62
- if not isinstance(cat, pystac.Catalog):
63
- raise pystac.STACTypeError(
64
- f"File at {href} is a {cat.STAC_OBJECT_TYPE} not a Catalog."
65
- )
+ assert isinstance(cat, pystac.Catalog)
66
67
rels = set([link["rel"] for link in cat_dict["links"]])
68
self.assertEqual("self" in rels, should_include_self)
0 commit comments