Skip to content

Commit

Permalink
Fix pylint errors after update
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Oct 25, 2024
1 parent b0f3b8f commit 63934b2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inventory_management_system_api/services/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ class ItemService:
Service for managing items.
"""

# pylint:disable=too-many-arguments
# pylint:disable=too-many-positional-arguments
def __init__(
self,
item_repository: Annotated[ItemRepo, Depends(ItemRepo)],
catalogue_category_repository: Annotated[CatalogueCategoryRepo, Depends(CatalogueCategoryRepo)],
catalogue_item_repository: Annotated[CatalogueItemRepo, Depends(CatalogueItemRepo)],
system_repository: Annotated[SystemRepo, Depends(SystemRepo)],
usage_status_repository: Annotated[UsageStatusRepo, Depends(UsageStatusRepo)],
# pylint: disable=too-many-arguments
) -> None:
"""
Initialise the `ItemService` with an `ItemRepo`, `CatalogueCategoryRepo`,
Expand Down
1 change: 1 addition & 0 deletions test/unit/repositories/test_catalogue_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ def set_update_data(self, new_catalogue_category_in_data: dict):
self._catalogue_category_in = CatalogueCategoryIn(**new_catalogue_category_in_data)

# pylint:disable=too-many-arguments
# pylint:disable=too-many-positional-arguments
def mock_update(
self,
catalogue_category_id: str,
Expand Down
1 change: 1 addition & 0 deletions test/unit/repositories/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ def set_update_data(self, new_system_in_data: dict):
self._system_in = SystemIn(**new_system_in_data)

# pylint:disable=too-many-arguments
# pylint:disable=too-many-positional-arguments
def mock_update(
self,
system_id: str,
Expand Down
1 change: 1 addition & 0 deletions test/unit/services/test_catalogue_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ class UpdateDSL(CatalogueCategoryServiceDSL):
unit_value_id_dict: dict[str, str]

# pylint:disable=too-many-arguments
# pylint:disable=too-many-positional-arguments
def mock_update(
self,
catalogue_category_id: str,
Expand Down
1 change: 1 addition & 0 deletions test/unit/services/test_catalogue_category_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class CatalogueCategoryPropertyServiceDSL(BaseCatalogueServiceDSL):
catalogue_category_property_service: CatalogueCategoryPropertyService

# pylint:disable=too-many-arguments
# pylint:disable=too-many-positional-arguments
@pytest.fixture(autouse=True)
def setup(
self,
Expand Down
2 changes: 2 additions & 0 deletions test/unit/services/test_catalogue_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class CatalogueItemServiceDSL(BaseCatalogueServiceDSL):
catalogue_item_service: CatalogueItemService

# pylint:disable=too-many-arguments
# pylint:disable=too-many-positional-arguments
@pytest.fixture(autouse=True)
def setup(
self,
Expand Down Expand Up @@ -456,6 +457,7 @@ class UpdateDSL(CatalogueItemServiceDSL):
_updating_properties: bool

# pylint:disable=too-many-arguments
# pylint:disable=too-many-positional-arguments
def mock_update(
self,
catalogue_item_id: str,
Expand Down
2 changes: 2 additions & 0 deletions test/unit/services/test_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class ItemServiceDSL(BaseCatalogueServiceDSL):
item_service: ItemService

# pylint:disable=too-many-arguments
# pylint:disable=too-many-positional-arguments
@pytest.fixture(autouse=True)
def setup(
self,
Expand Down Expand Up @@ -461,6 +462,7 @@ class UpdateDSL(ItemServiceDSL):
_expected_merged_properties: List[PropertyPostSchema]

# pylint:disable=too-many-arguments
# pylint:disable=too-many-positional-arguments
# pylint:disable=too-many-locals
def mock_update(
self,
Expand Down

0 comments on commit 63934b2

Please sign in to comment.