From 8d997e88f12453ff07bab48cfc8c08d6dda54e61 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 17 Nov 2021 16:29:27 +0100 Subject: [PATCH] bugfix: mobile added to some mails --- evapp/settings.py | 4 ++-- evapp/tests.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/evapp/settings.py b/evapp/settings.py index e50e70c..c0221e4 100644 --- a/evapp/settings.py +++ b/evapp/settings.py @@ -20,7 +20,7 @@ MAILS = { 'OFFICE': { 'MAIL': 'office@wikimedia.de', 'DATA': [ - 'transponder', 'special', 'post_office_box', 'sim', 'sim2', + 'transponder', 'special', 'post_office_box', 'mobile', 'works_in_gs', 'desk', ], }, @@ -34,7 +34,7 @@ MAILS = { 'CENTRAL': { 'MAIL': 'eileen.miedtank@wikimedia.de', 'DATA': [ - 'department', 'team', 'language', 'sim', 'sim2', 'rebu2go' + 'department', 'team', 'language', 'mobile', 'rebu2go' ], }, 'HR': { diff --git a/evapp/tests.py b/evapp/tests.py index 0d93568..d509c3b 100644 --- a/evapp/tests.py +++ b/evapp/tests.py @@ -89,8 +89,11 @@ class LoginTestCase(TestCase): def test_mail(self): self.test_wizzard_in() - # print(mail.outbox) + # print(mail.outbox[0].body) self.assertGreater(len(mail.outbox), 2) + self.assertIn("Vorname", mail.outbox[0].body) + for i in (0,1,3): + self.assertIn("Handy", mail.outbox[i].body) self.assertIn("Ara Seva", mail.outbox[0].subject) class NoLoginTestCase(TestCase):