Exemplo n.º 1
0
    def test_send(self):

        config = EmailConfiguration()

        sender = EmailSender(config)

        sender.send("*****@*****.**", "New patio",
                    "Do you need any help with the slabs?")
Exemplo n.º 2
0
 def load_email(self):
     if self._configuration.client_configuration.email is not None:
         YLogger.debug(None, "Loading Email Manager")
         self._email = EmailSender(
             self._configuration.client_configuration.email)
Exemplo n.º 3
0
 def __init__(self, config: EmailConfiguration, mock_sender, result=None, ctype=None, attachment_encoding=None):
     EmailSender.__init__(self, config)
     self.mock_sender = mock_sender
     self._result = result
     self._ctype = ctype
     self._attachment_encoding = attachment_encoding
Exemplo n.º 4
0
 def __init__(self, config: EmailConfiguration):
     EmailSender.__init__(self, config)
Exemplo n.º 5
0
 def __init__(self, config: EmailConfiguration, mock_sender):
     EmailSender.__init__(self, config)
     self.mock_sender = mock_sender