From 6259efbc44be3e21e42b29246941cd300e79200f Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 24 Nov 2015 11:12:49 -0800 Subject: Adding emailcanary script Adding the main launch script. Adding the listAddress to the pings table. Fixing the Makefile --- tests/test_canary.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_canary.py') diff --git a/tests/test_canary.py b/tests/test_canary.py index ff104f6..d23f3fe 100644 --- a/tests/test_canary.py +++ b/tests/test_canary.py @@ -40,10 +40,10 @@ class TestCanary(unittest.TestCase): # Assert DB updated self.db.get_recipients_for_list.assert_called_with(LIST_ADDRESS) self.db.ping.assert_has_calls( \ - [mock.call(USER_ADDRESS1, mock.ANY, mock.ANY), \ - mock.call(USER_ADDRESS2, mock.ANY, mock.ANY)]) + [mock.call(LIST_ADDRESS, USER_ADDRESS1, mock.ANY, mock.ANY), \ + mock.call(LIST_ADDRESS, USER_ADDRESS2, mock.ANY, mock.ANY)]) args = self.db.ping.call_args - expectedSubject = "Canary Email " + args[0][2] + expectedSubject = "Canary Email " + args[0][3] # Assert emails were sent self.assertEqual(1, self.smtp.sendmail.call_count) -- cgit v1.2.3