Explorar el Código

test: now test_send_multi actually sends multiple

Mikael Koli hace 4 años
padre
commit
9e1c0f30b2
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      redmail/test/email/test_send.py

+ 6 - 0
redmail/test/email/test_send.py

@@ -47,6 +47,12 @@ def test_send_multi():
         )
         assert isinstance(msg, EmailMessage)
         assert email.connection is not None
+        msg = email.send(
+            subject="An example",
+            receivers=['koli.mikael@example.com']
+        )
+        assert isinstance(msg, EmailMessage)
+        assert email.connection is not None
     assert email.connection is None
 
 def test_send_function():