Coverage for app/ddd/application/usecase/group/query_group_usecase.py: 57%
7 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-15 01:44 +0000
1from app.ddd.application.dto.group import QueryGroupInputDTO, QueryGroupOutputDTO
2from app.ddd.application.usecase.group.base_group_usecase import BaseGroupUseCase
5class QueryGroupUseCase(BaseGroupUseCase[QueryGroupInputDTO, QueryGroupOutputDTO]):
6 def execute(self, input_dto: QueryGroupInputDTO) -> QueryGroupOutputDTO:
7 print(input_dto)
8 groups = self._uow.group_repository.query()
9 return QueryGroupOutputDTO(groups = groups)