bugfix: mobile added to some mails
This commit is contained in:
parent
9434752ebe
commit
8d997e88f1
evapp
|
@ -20,7 +20,7 @@ MAILS = {
|
||||||
'OFFICE': {
|
'OFFICE': {
|
||||||
'MAIL': 'office@wikimedia.de',
|
'MAIL': 'office@wikimedia.de',
|
||||||
'DATA': [
|
'DATA': [
|
||||||
'transponder', 'special', 'post_office_box', 'sim', 'sim2',
|
'transponder', 'special', 'post_office_box', 'mobile',
|
||||||
'works_in_gs', 'desk',
|
'works_in_gs', 'desk',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -34,7 +34,7 @@ MAILS = {
|
||||||
'CENTRAL': {
|
'CENTRAL': {
|
||||||
'MAIL': 'eileen.miedtank@wikimedia.de',
|
'MAIL': 'eileen.miedtank@wikimedia.de',
|
||||||
'DATA': [
|
'DATA': [
|
||||||
'department', 'team', 'language', 'sim', 'sim2', 'rebu2go'
|
'department', 'team', 'language', 'mobile', 'rebu2go'
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'HR': {
|
'HR': {
|
||||||
|
|
|
@ -89,8 +89,11 @@ class LoginTestCase(TestCase):
|
||||||
|
|
||||||
def test_mail(self):
|
def test_mail(self):
|
||||||
self.test_wizzard_in()
|
self.test_wizzard_in()
|
||||||
# print(mail.outbox)
|
# print(mail.outbox[0].body)
|
||||||
self.assertGreater(len(mail.outbox), 2)
|
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)
|
self.assertIn("Ara Seva", mail.outbox[0].subject)
|
||||||
|
|
||||||
class NoLoginTestCase(TestCase):
|
class NoLoginTestCase(TestCase):
|
||||||
|
|
Loading…
Reference in New Issue