Skip to content

Commit 61f6f47

Browse files
committed
993 convert FullCopyTest to pytest
1 parent d1e8dbd commit 61f6f47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_catalog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ def test_to_dict_no_self_href(self) -> None:
14231423
Catalog.from_dict(d)
14241424

14251425

1426-
class FullCopyTest(unittest.TestCase):
1426+
class TestFullCopy:
14271427
def check_link(self, link: pystac.Link, tag: str) -> None:
14281428
if link.is_resolved():
14291429
target_href: str = cast(pystac.STACObject, link.target).self_href
@@ -1438,7 +1438,7 @@ def check_item(self, item: Item, tag: str) -> None:
14381438
self.check_link(link, tag)
14391439

14401440
def check_catalog(self, c: Catalog, tag: str) -> None:
1441-
self.assertEqual(len(c.get_links("root")), 1, msg=f"{c}")
1441+
assert len(c.get_links("root")) == 1, f"Failure for catalog: {c}"
14421442

14431443
for link in c.links:
14441444
self.check_link(link, tag)

0 commit comments

Comments
 (0)