Coverage for src/app/ports/get_template_port.py: 100%
5 statements
« prev ^ index » next coverage.py v7.7.0, created at 2025-04-02 22:46 +0200
« 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
4class GetTemplatePort(ABC):
5 """
6 GetTemplatePort is an abstract base class that defines the interface for getting templates.
7 """
9 @abstractmethod
10 def get_template(self, template: TemplateModel) -> TemplateModel:
11 """
12 Retrieve a template by its details.
13 Args:
14 template (TemplateModel): The template details to retrieve.
15 Returns:
16 TemplateModel: The retrieved template.
17 """