changeset 8673a2e9c403 in modules/notification_email:default
details: 
https://hg.tryton.org/modules/notification_email?cmd=changeset&node=8673a2e9c403
description:
        Do not set record name on title of report get_email

        issue10724
        review362511002
diffstat:

 tests/test_notification_email.py |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 1b99cee3a0fd -r 8673a2e9c403 tests/test_notification_email.py
--- a/tests/test_notification_email.py  Thu Aug 12 18:36:32 2021 +0200
+++ b/tests/test_notification_email.py  Thu Sep 23 10:10:51 2021 +0200
@@ -109,8 +109,7 @@
                 datamanager=ANY)
             _, _, msg = sendmail.call_args[0]
             self.assertEqual(msg['From'], FROM)
-            self.assertEqual(
-                msg['Subject'], 'Notification Email-Michael Scott')
+            self.assertEqual(msg['Subject'], 'Notification Email')
             self.assertEqual(msg['To'], 'Administrator <[email protected]>')
             self.assertEqual(msg['Auto-Submitted'], 'auto-generated')
             self.assertEqual(msg.get_content_type(), 'multipart/alternative')
@@ -157,8 +156,7 @@
             user, FROM, ['Administrator <[email protected]>'], [], [], [en])
 
         self.assertEqual(msg['From'], FROM)
-        self.assertEqual(
-            msg['Subject'], 'Notification Email-Michael Scott')
+        self.assertEqual(msg['Subject'], 'Notification Email')
         self.assertEqual(msg['To'], 'Administrator <[email protected]>')
         self.assertEqual(msg.get_content_type(), 'multipart/mixed')
         self.assertEqual(

Reply via email to