Coverage for src/app/usecases/update_message_rating_useCase.py: 100%

5 statements  

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

1from abc import ABC, abstractmethod 

2from models.message_model import MessageModel 

3 

4class UpdateMessageRatingUseCase(ABC): 

5 

6 @abstractmethod 

7 def update_message_rating(self, message: MessageModel) -> bool: 

8 """ 

9 Update the rating of a message. 

10 Args: 

11 message (MessageModel): The message containing the ID and the new rating value. 

12 Returns: 

13 bool: True if the rating was successfully updated, False otherwise. 

14 """