Coverage for app/ddd/application/usecase/group/base_group_usecase.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2025-01-15 01:44 +0000

1from app.core.base.base_usecase import ( 

2 BaseInputDTOType, 

3 BaseOutputDTOType, 

4 BaseUsecase, 

5) 

6from app.ddd.application.uow import GroupUnitOfWork 

7 

8# from app.ddd.domain.factory import TokenFactory 

9# from app.ddd.domain.service import AuthService 

10# from app.ddd.infrastructure.factory import TokenFactoryImpl 

11# from app.ddd.infrastructure.service import AuthServiceImpl 

12 

13# TOKEN_FACTORY = TokenFactoryImpl() 

14# AUTH_SERVICE = AuthServiceImpl() 

15 

16class BaseGroupUseCase(BaseUsecase[BaseInputDTOType, BaseOutputDTOType]): 

17 def __init__( 

18 self, 

19 uow: GroupUnitOfWork, 

20 # auth_payload, 

21 # token_factory: TokenFactory = TOKEN_FACTORY, 

22 # auth_service: AuthService = AUTH_SERVICE, 

23 ) -> None: 

24 self._uow = uow 

25 # # self._auth_payload = auth_payload 

26 # self.token_factory = token_factory 

27 # self.auth_service = auth_service 

28 

29 

30