Skip to content

Commit

Permalink
test_link.py: Remove TODOs
Browse files Browse the repository at this point in the history
Made stac-utils#218 to track them.
  • Loading branch information
schwehr committed Oct 27, 2020
1 parent 262adfe commit df45327
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/test_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def test_minimal(self):

# Run the same tests on the clone.
clone = link.clone()
# TODO(schwehr): Does link need an __eq__?
self.assertNotEqual(link, clone)

self.assertEqual(target, clone.get_href())
Expand Down Expand Up @@ -64,9 +63,6 @@ def test_minimal(self):

link.set_owner(self.item)
self.assertEqual(self.item, link.owner)
# TODO(schwehr): Cannot call link.get_href() after set_owner.

# TODO(schwehr): Test link.resolve_stac_object()

def test_relative(self):
rel = 'my rel'
Expand Down Expand Up @@ -99,10 +95,6 @@ def test_link_does_not_fail_if_href_is_none(self):
link = catalog.get_single_link('item')
self.assertIsNone(link.get_href())

# TODO: Test get_href when href is absolute and there is an owner
# TODO: Test get_absolute_href when there is an owner
# TODO: Test when resolve_stac_object on link when target is a str.

def test_resolve_stac_object_no_root_and_target_is_item(self):
link = pystac.Link('my rel', target=self.item)
link.resolve_stac_object()
Expand Down

0 comments on commit df45327

Please sign in to comment.