Skip to content

Commit 1a20bbf

Browse files
committed
Address further comments from CC repo unit tests PR #305
1 parent 9ea1038 commit 1a20bbf

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

test/unit/repositories/test_catalogue_category.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def set_update_data(self, new_catalogue_category_in_data: dict):
595595
596596
:param new_catalogue_category_in_data: New catalogue category data as would be required for a
597597
`CatalogueCategoryIn` database model to supply to the `CatalogueCategoryRepo`
598-
`update` method
598+
`update` method.
599599
"""
600600
self._catalogue_category_in = CatalogueCategoryIn(**new_catalogue_category_in_data)
601601

@@ -1006,7 +1006,7 @@ def mock_delete(
10061006
10071007
:param deleted_count: Number of documents deleted successfully.
10081008
:param child_catalogue_category_data: Dictionary containing a child catalogue category's data (or `None`).
1009-
:param child_item_data: Dictionary containing a child catalogue item's data (or `None`).
1009+
:param child_catalogue_item_data: Dictionary containing a child catalogue item's data (or `None`).
10101010
"""
10111011

10121012
self.mock_has_child_elements(child_catalogue_category_data, child_catalogue_item_data)
@@ -1086,7 +1086,7 @@ def test_delete_with_child_catalogue_category(self):
10861086
)
10871087

10881088
def test_delete_with_child_catalogue_item(self):
1089-
"""Test deleting a catalogue category when it has a child Catalogue Item."""
1089+
"""Test deleting a catalogue category when it has a child catalogue item."""
10901090

10911091
catalogue_category_id = str(ObjectId())
10921092

@@ -1225,7 +1225,7 @@ def test_create_property_with_invalid_id(self):
12251225
class UpdatePropertyDSL(CreatePropertyDSL):
12261226
"""Base class for `update_property` tests."""
12271227

1228-
_updated_property: CatalogueCategoryOut
1228+
_updated_property: CatalogueCategoryPropertyOut
12291229
_property_id: str
12301230
_update_exception: pytest.ExceptionInfo
12311231

test/unit/services/test_catalogue_category.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,14 @@ def mock_create(
214214
ServiceTestHelpers.mock_create(self.mock_catalogue_category_repository, self._expected_catalogue_category_out)
215215

216216
def call_create(self) -> None:
217-
"""Calls the CatalogueCategoryService `create` method with the appropriate data from a prior call to
217+
"""Calls the `CatalogueCategoryService` `create` method with the appropriate data from a prior call to
218218
`mock_create`."""
219219

220220
self._created_catalogue_category = self.catalogue_category_service.create(self._catalogue_category_post)
221221

222222
def call_create_expecting_error(self, error_type: type[BaseException]) -> None:
223223
"""
224-
Calls the CatalogueCategoryService `create` method with the appropriate data from a prior call to
224+
Calls the `CatalogueCategoryService` `create` method with the appropriate data from a prior call to
225225
`mock_create` while expecting an error to be raised.
226226
227227
:param error_type: Expected exception to be raised.
@@ -358,7 +358,7 @@ def mock_get(self) -> None:
358358

359359
def call_get(self, catalogue_category_id: str) -> None:
360360
"""
361-
Calls the CatalogueCategoryService `get` method.
361+
Calls the `CatalogueCategoryService` `get` method.
362362
363363
:param catalogue_category_id: ID of the catalogue category to be obtained.
364364
"""
@@ -444,7 +444,7 @@ def mock_list(self) -> None:
444444

445445
def call_list(self, parent_id: Optional[str]) -> None:
446446
"""
447-
Calls the CatalogueCategoryService `list` method.
447+
Calls the `CatalogueCategoryService` `list` method.
448448
449449
:param parent_id: ID of the parent catalogue category to query by, or `None`.
450450
"""
@@ -842,7 +842,7 @@ class DeleteDSL(CatalogueCategoryServiceDSL):
842842

843843
def call_delete(self, catalogue_category_id: str) -> None:
844844
"""
845-
Calls the CatalogueCategoryService `delete` method.
845+
Calls the `CatalogueCategoryService` `delete` method.
846846
847847
:param catalogue_category_id: ID of the catalogue category to be deleted.
848848
"""

0 commit comments

Comments
 (0)