Coverage for src/app/ports/get_conversations_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.conversation_model import ConversationModel 

3 

4class GetConversationsPort(ABC): 

5 """ 

6 GetConversationsPort is an interface for getting multiple conversations. 

7 """ 

8 

9 @abstractmethod 

10 def get_conversations(self, conversation : ConversationModel) -> list[ConversationModel]: 

11 """ 

12 Get all conversations. 

13 Returns: 

14 List[ConversationModel]: A list of conversation models. 

15 """