Skip to content

Commit

Permalink
Merge branch 'add-spares-definition-put-#413' into calculate-number-o…
Browse files Browse the repository at this point in the history
…f-spares-#417
  • Loading branch information
joelvdavies committed Dec 3, 2024
2 parents e3e0640 + d747c73 commit 73b6b25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions inventory_management_system_api/schemas/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def validate_usage_statuses(
Ensures the `usage_statuses` dont contain any duplicate IDs.
:param usage_statuses: The value of the `usage_statuses` field.
:param info: Validation info from pydantic.
:return: The value of the `usage_statuses` field.
"""

Expand All @@ -57,7 +56,7 @@ def validate_usage_statuses(
return usage_statuses


class SparesDefinitionSchema(SparesDefinitionPutSchema):
class SparesDefinitionSchema(BaseModel):
"""
Schema model for a spares definition.
"""
Expand Down
4 changes: 2 additions & 2 deletions test/unit/repositories/test_usage_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def mock_delete(
:param deleted_count: Number of documents deleted successfully.
:param item_data: Dictionary containing an item's data (or `None`).
:param setting_data: Dictionary containing an settings's data (or `None`).
:param setting_data: Dictionary containing a settings's data (or `None`).
"""
self.mock_is_usage_status_in_item(item_data)
self.mock_is_usage_status_in_setting(setting_data)
Expand Down Expand Up @@ -400,7 +400,7 @@ def mock_is_usage_status_in_setting(self, setting_data: Optional[dict] = None) -
Mocks database methods appropriately for when the `_is_usage_status_in_setting` repo method will be
called.
:param setting_data: Dictionary containing an settings's data (or `None`).
:param setting_data: Dictionary containing a settings's data (or `None`).
"""
self._mock_setting_data = setting_data
RepositoryTestHelpers.mock_find_one(self.settings_collection, setting_data)
Expand Down

0 comments on commit 73b6b25

Please sign in to comment.