Coverage for app/ddd/domain/factory/token_factory.py: 100%

5 statements  

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

1from abc import ABCMeta, abstractmethod 

2 

3from app.ddd.domain.model import Token, User 

4 

5 

6class TokenFactory(metaclass=ABCMeta): 

7 @abstractmethod 

8 def create(self, user: User) -> Token: 

9 raise NotImplementedError