MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / CaptureMail

Class CaptureMail

web/regression/runtests.py:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131
132class CaptureMail:
133 # A hack Mail service that simply captures what would be sent.
134 def __init__(self, app):
135 app.extensions["mail"] = self
136 self.sent = []
137 self.ascii_attachments = []
138
139 def send(self, msg):
140 self.sent.append(msg.body)
141
142 def pop(self):
143 if len(self.sent):
144 return self.sent.pop(0)
145 return None
146
147
148CaptureMail(app)

Callers 1

runtests.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected