Skip to content

Commit

Permalink
Update ItemService unit tests #417
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Dec 2, 2024
1 parent 9d8ee77 commit e3e0640
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 10 deletions.
10 changes: 9 additions & 1 deletion test/unit/services/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,15 @@ def mock_create(
def mock_get(
repository_mock: Mock,
repo_obj: Union[
CatalogueCategoryOut, CatalogueItemOut, ItemOut, ManufacturerOut, SystemOut, UnitOut, UsageStatusOut, None
CatalogueCategoryOut,
CatalogueItemOut,
ItemOut,
ManufacturerOut,
SystemOut,
UnitOut,
UsageStatusOut,
SparesDefinitionOut,
None,
],
) -> None:
"""
Expand Down
5 changes: 3 additions & 2 deletions test/unit/services/test_catalogue_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ def mock_add_property_unit_values(
def check_add_property_unit_values_performed_expected_calls(
self, expected_properties: list[CatalogueCategoryPostPropertySchema]
) -> None:
"""Checks that a call to `add_property_unit_values` performed the expected function calls.
"""
Checks that a call to `add_property_unit_values` performed the expected function calls.
:param expected_properties: Expected properties the function would have been called with.
:param expected_properties: Expected properties the function should have been called with.
"""

expected_unit_repo_calls = []
Expand Down
Loading

0 comments on commit e3e0640

Please sign in to comment.