From 5cd3665a73484c36adfb3f6e5f160e290276edda Mon Sep 17 00:00:00 2001 From: KeynesYouDigit Date: Sat, 23 Nov 2024 15:30:16 -0700 Subject: [PATCH] use os path for path count in display as well --- tests/test_layout.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_layout.py b/tests/test_layout.py index c6a0fa52..003df47e 100644 --- a/tests/test_layout.py +++ b/tests/test_layout.py @@ -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() @@ -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() @@ -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):