Coverage for src/app/ports/get_template_list_port.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.7.0, created at 2025-04-02 22:46 +0200

1from abc import ABC, abstractmethod 

2from models.template_model import TemplateModel 

3 

4class GetTemplateListPort(ABC): 

5 """ 

6 GetTemplateListPort is an abstract base class that defines the interface for retrieving a list of templates. 

7 """ 

8 

9 @abstractmethod 

10 def get_template_list(self) -> list[TemplateModel]: 

11 """ 

12 Retrieve all templates. 

13 Returns: 

14 list[TemplateModel]: A list of TemplateModel objects. 

15 """