You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, no work is done to ensure that the self href is absolute, as demonstrated by this failing test:
deftest_relative_self_href(self) ->None:
self.item.add_link(pystac.Link("self", "a/relative/path/item.json"))
# this failsself.assertEqual(
self.item.get_self_href(), os.path.abspath("a/relative/path/item.json")
)
This is true for objects read via, e.g. pystac.read_file as well. Should the returned self HREF be resolved to an absolute HREF as best as possible, or should we just return None?
The text was updated successfully, but these errors were encountered:
In the documentation for
STACObject.get_self_href
, it states that the returned HREF will be absolute:pystac/pystac/stac_object.py
Lines 145 to 164 in 76ef6a3
However, no work is done to ensure that the self href is absolute, as demonstrated by this failing test:
This is true for objects read via, e.g.
pystac.read_file
as well. Should the returned self HREF be resolved to an absolute HREF as best as possible, or should we just returnNone
?The text was updated successfully, but these errors were encountered: