Coverage for packages/kwai-core/src/kwai_core/domain/mailer_service.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2024-01-01 00:00 +0000

1"""Module that defines an interface for a service that uses a mailer.""" 

2 

3from abc import abstractmethod 

4 

5from kwai_core.mail.message import Message 

6 

7 

8class MailerService: 

9 """Interface for a mailer service.""" 

10 

11 @abstractmethod 

12 def send(self) -> Message: 

13 """Send the mail.""" 

14 raise NotImplementedError