Coverage for kwai/core/domain/mailer_service.py: 100%
3 statements
« prev ^ index » next coverage.py v7.3.0, created at 2023-09-05 17:55 +0000
« prev ^ index » next coverage.py v7.3.0, created at 2023-09-05 17:55 +0000
1"""Module that defines an interface for a service that uses a mailer."""
2from abc import abstractmethod
4from kwai.core.mail.message import Message
7class MailerService:
8 """Interface for a mailer service."""
10 @abstractmethod
11 def send(self) -> Message:
12 """Send the mail."""
13 raise NotImplementedError