summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-011-wallace_resources.py
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2018-06-20 11:10:03 +0000
committerAleksander Machniak <machniak@kolabsys.com>2018-06-20 11:10:03 +0000
commit90d2d23b4c21cf9b39582add9c8a6de9d91c3a15 (patch)
tree54bd225892ebbdf704b174175d2f6380067da87c /tests/unit/test-011-wallace_resources.py
parent5ec8788dd436b342f160ad3dfcca634e68e65112 (diff)
downloadpykolab-90d2d23b4c21cf9b39582add9c8a6de9d91c3a15.tar.gz
Fix unit tests on a system with no smtp service
Diffstat (limited to 'tests/unit/test-011-wallace_resources.py')
-rw-r--r--tests/unit/test-011-wallace_resources.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/test-011-wallace_resources.py b/tests/unit/test-011-wallace_resources.py
index 01ef0d1..73fba5d 100644
--- a/tests/unit/test-011-wallace_resources.py
+++ b/tests/unit/test-011-wallace_resources.py
@@ -109,6 +109,7 @@ class TestWallaceResources(unittest.TestCase):
import smtplib
self.patch(smtplib.SMTP, "__init__", self._mock_smtp_init)
self.patch(smtplib.SMTP, "quit", self._mock_nop)
+ self.patch(smtplib.SMTP, "connect", self._mock_nop)
self.patch(smtplib.SMTP, "sendmail", self._mock_smtp_sendmail)
self.smtplog = []