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 e15c7c0 commit 1fbf4c2Copy full SHA for 1fbf4c2
tests/test_writing.py
@@ -74,7 +74,7 @@ def validate_catalog_link_type(
74
cat_dict = pystac.StacIO.default().read_json(href)
75
cat = pystac.read_file(href)
76
if not isinstance(cat, pystac.Catalog):
77
- raise pystac.STACTypeError(f"File at {href} is not a Catalog.")
+ raise pystac.STACTypeError(f"File at {href} is a {cat.STAC_OBJECT_TYPE} not a Catalog.")
78
79
rels = set([link["rel"] for link in cat_dict["links"]])
80
self.assertEqual("self" in rels, should_include_self)
0 commit comments