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

3 statements  

« prev     ^ index     » next       coverage.py v7.6.10, 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