Skip to content

Commit

Permalink
use os path for path count in display as well
Browse files Browse the repository at this point in the history
  • Loading branch information
KeynesYouDigIt committed Nov 23, 2024
1 parent e79df49 commit 5cd3665
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def test_catalog(self) -> None:
href = self.strategy.get_href(
cat, parent_dir="https://example.com", is_root=True
)
self.assertEqual(href, "/an/href")
self.assertEqual(href, self.expected_local_href)

def test_collection(self) -> None:
collection = TestCases.case_8()
Expand All @@ -445,7 +445,7 @@ def test_collection(self) -> None:
href = self.strategy.get_href(
collection, parent_dir="https://example.com", is_root=True
)
self.assertEqual(href, "/an/href")
self.assertEqual(href, self.expected_local_href)

def test_item(self) -> None:
collection = TestCases.case_8()
Expand All @@ -455,7 +455,7 @@ def test_item(self) -> None:
self.strategy.get_href(item, parent_dir="http://example.com")
item.set_self_href("/an/href")
href = self.strategy.get_href(item, parent_dir="http://example.com")
self.assertEqual(href, "/an/href")
self.assertEqual(href, self.expected_local_href)


class APILayoutStrategyTest(unittest.TestCase):
Expand Down

0 comments on commit 5cd3665

Please sign in to comment.