-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit test CatalogueItemService class #7
- Loading branch information
Showing
4 changed files
with
446 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Module for providing common test configuration and test fixtures. | ||
""" | ||
from unittest.mock import Mock | ||
|
||
import pytest | ||
|
||
from inventory_management_system_api.repositories.catalogue_category import CatalogueCategoryRepo | ||
|
||
|
||
@pytest.fixture(name="catalogue_category_repository_mock") | ||
def fixture_catalogue_category_repository_mock() -> Mock: | ||
""" | ||
Fixture to create a mock of the `CatalogueCategoryRepo` dependency. | ||
:return: Mocked CatalogueCategoryRepo instance. | ||
""" | ||
return Mock(CatalogueCategoryRepo) |
Oops, something went wrong.