Coverage for src/app/ports/delete_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 DeleteTemplatePort(ABC):
5 """
6 DeleteTemplatePort is an abstract base class that defines the interface for deleting templates.
7 """
9 @abstractmethod
10 def delete_template(self, template: TemplateModel) -> bool:
11 """
12 Delete a template.
13 Args:
14 template (TemplateModel): The template to delete.
15 Returns:
16 bool: True if the template was deleted successfully, otherwise False.
17 """