Skip to content

Commit

Permalink
Merge branch 'refactor-catalogue-item-e2e-tests-#342' into refactor-i…
Browse files Browse the repository at this point in the history
…tem-repo-unit-tests-#345
  • Loading branch information
joelvdavies committed Sep 3, 2024
2 parents 022bdc1 + 6352ce6 commit 76bb12d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/unit/repositories/test_catalogue_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ class ListIDsDSL(CatalogueItemRepoDSL):
"""Base class for `list_ids` tests"""

_list_ids_catalogue_category_id: str
_list_ids_result: bool
_list_ids_result: list[ObjectId]

def call_list_ids(self, catalogue_category_id: str) -> None:
"""Calls the `CatalogueItemRepo` `list_ids` method.
Expand All @@ -628,10 +628,7 @@ def call_list_ids(self, catalogue_category_id: str) -> None:
)

def check_list_ids_success(self) -> None:
"""Checks that a prior call to `call_list_ids` worked as expected.
:param expected_result: The expected result returned by `list_ids`.
"""
"""Checks that a prior call to `call_list_ids` worked as expected."""

self.catalogue_items_collection.find.assert_called_once_with(
{"catalogue_category_id": CustomObjectId(self._list_ids_catalogue_category_id)},
Expand Down

0 comments on commit 76bb12d

Please sign in to comment.