Skip to content

Commit

Permalink
not check mocked instance
Browse files Browse the repository at this point in the history
  • Loading branch information
marcanuy committed Sep 19, 2023
1 parent a1cb498 commit a3d60d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,8 @@ def test_as_list(self, mock_resolve):
result = breadcrumbs.as_list()

self.assertEqual(result[0]["name"], app_settings.HOME_LABEL)
self.assertEqual(result[0]["resolved"], True)
self.assertEqual(result[1]["name"], "continent")
self.assertEqual(result[1]["resolved"], True)
self.assertEqual(result[2]["name"], "some-continent")
self.assertEqual(result[2]["resolved"], True)

@patch('dynamic_breadcrumbs.utils.BreadcrumbsItem._get_resolved_url_metadata')
def test_as_list_only_home(self, mock_resolve):
Expand Down Expand Up @@ -140,8 +137,9 @@ def test_show_home_at_base_url(self, mock_resolve):
app_settings.SHOW_AT_BASE_PATH = True
path = "/"
breadcrumbs = Breadcrumbs(path=path)

result = breadcrumbs.as_list()
print(result)

self.assertEqual(len(result), 1)

@patch('dynamic_breadcrumbs.utils.BreadcrumbsItem._get_resolved_url_metadata')
Expand Down

0 comments on commit a3d60d6

Please sign in to comment.