From fe3f0ebdb431a0979621376698a64d2fdfd9a463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 24 Sep 2020 18:28:44 +0200 Subject: [PATCH] Update tests for new report name scheme issue9509 --- tests/test_notification_email.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_notification_email.py b/tests/test_notification_email.py index 03ca9beaee..f2c778d69b 100644 --- a/tests/test_notification_email.py +++ b/tests/test_notification_email.py @@ -107,7 +107,8 @@ class NotificationEmailTestCase(ModuleTestCase): datamanager=ANY) _, _, msg = sendmail.call_args[0] self.assertEqual(msg['From'], FROM) - self.assertEqual(msg['Subject'], 'Notification Email') + self.assertEqual( + msg['Subject'], 'Notification Email-Michael Scott') self.assertEqual(msg['To'], 'Administrator ') self.assertEqual(msg['Auto-Submitted'], 'auto-generated') self.assertEqual(msg.get_content_type(), 'multipart/alternative') @@ -154,7 +155,8 @@ class NotificationEmailTestCase(ModuleTestCase): user, FROM, ['Administrator '], [], [], [en]) self.assertEqual(msg['From'], FROM) - self.assertEqual(msg['Subject'], 'Notification Email') + self.assertEqual( + msg['Subject'], 'Notification Email-Michael Scott') self.assertEqual(msg['To'], 'Administrator ') self.assertEqual(msg.get_content_type(), 'multipart/mixed') self.assertEqual( @@ -166,7 +168,8 @@ class NotificationEmailTestCase(ModuleTestCase): b'attachment for Michael Scott') self.assertEqual( attachment.get_content_type(), 'text/plain') - self.assertEqual(attachment.get_filename(), "Attachment.txt") + self.assertEqual( + attachment.get_filename(), "Attachment-Michael Scott.txt") @with_transaction() def test_notification_email_subject(self):