Skip to content

Commit

Permalink
Initial refactor of SystemRepo unit tests #90
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Jun 19, 2024
1 parent 5598d50 commit 09b2356
Show file tree
Hide file tree
Showing 2 changed files with 695 additions and 678 deletions.
11 changes: 0 additions & 11 deletions test/unit/repositories/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,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

0 comments on commit 09b2356

Please sign in to comment.