Skip to content

Commit 5cd3665

Browse files
use os path for path count in display as well
1 parent e79df49 commit 5cd3665

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_layout.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def test_catalog(self) -> None:
432432
href = self.strategy.get_href(
433433
cat, parent_dir="https://example.com", is_root=True
434434
)
435-
self.assertEqual(href, "/an/href")
435+
self.assertEqual(href, self.expected_local_href)
436436

437437
def test_collection(self) -> None:
438438
collection = TestCases.case_8()
@@ -445,7 +445,7 @@ def test_collection(self) -> None:
445445
href = self.strategy.get_href(
446446
collection, parent_dir="https://example.com", is_root=True
447447
)
448-
self.assertEqual(href, "/an/href")
448+
self.assertEqual(href, self.expected_local_href)
449449

450450
def test_item(self) -> None:
451451
collection = TestCases.case_8()
@@ -455,7 +455,7 @@ def test_item(self) -> None:
455455
self.strategy.get_href(item, parent_dir="http://example.com")
456456
item.set_self_href("/an/href")
457457
href = self.strategy.get_href(item, parent_dir="http://example.com")
458-
self.assertEqual(href, "/an/href")
458+
self.assertEqual(href, self.expected_local_href)
459459

460460

461461
class APILayoutStrategyTest(unittest.TestCase):

0 commit comments

Comments
 (0)