mail notification
This commit is contained in:
@@ -28,3 +28,11 @@ class FakeGarminUploader:
|
||||
if self.error is not None:
|
||||
raise self.error
|
||||
return self.result
|
||||
|
||||
|
||||
class FakeNotifier:
|
||||
def __init__(self) -> None:
|
||||
self.sent: list[dict] = []
|
||||
|
||||
def send(self, *, to_address: str, subject: str, body: str) -> None:
|
||||
self.sent.append({"to_address": to_address, "subject": subject, "body": body})
|
||||
|
||||
Reference in New Issue
Block a user