Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial refactor of SystemRepo & Service unit tests #302 #299

Merged
merged 10 commits into from
Jun 25, 2024
12 changes: 0 additions & 12 deletions test/unit/repositories/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from inventory_management_system_api.repositories.catalogue_item import CatalogueItemRepo
from inventory_management_system_api.repositories.item import ItemRepo
from inventory_management_system_api.repositories.manufacturer import ManufacturerRepo
from inventory_management_system_api.repositories.system import SystemRepo
from inventory_management_system_api.repositories.unit import UnitRepo
from inventory_management_system_api.repositories.usage_status import UsageStatusRepo

Expand Down Expand Up @@ -80,17 +79,6 @@ def fixture_manufacturer_repository(database_mock: Mock) -> ManufacturerRepo:
return ManufacturerRepo(database_mock)


@pytest.fixture(name="system_repository")
def fixture_system_repository(database_mock: Mock) -> SystemRepo:
"""
Fixture to create a `SystemRepo` instance with a mocked Database dependency.

:param database_mock: Mocked MongoDB database instance.
:return: `SystemRepo` instance with the mocked dependency.
"""
return SystemRepo(database_mock)


@pytest.fixture(name="unit_repository")
def fixture_unit_repository(database_mock: Mock) -> UnitRepo:
"""
Expand Down
Loading
Loading