Commit ed470c6d authored by Michal Čihař's avatar Michal Čihař

Fix expected mail counts

parent fd4cff78
...@@ -408,8 +408,8 @@ class NotificationTest(ViewTestCase): ...@@ -408,8 +408,8 @@ class NotificationTest(ViewTestCase):
'Error\nstatus' 'Error\nstatus'
) )
# Check mail # Check mail (second one is for admin)
self.assertEqual(len(mail.outbox), 1) self.assertEqual(len(mail.outbox), 2)
self.assertEqual( self.assertEqual(
mail.outbox[0].subject, mail.outbox[0].subject,
'[Weblate] Merge failure in Test/Test' '[Weblate] Merge failure in Test/Test'
...@@ -450,8 +450,8 @@ class NotificationTest(ViewTestCase): ...@@ -450,8 +450,8 @@ class NotificationTest(ViewTestCase):
self.second_user() self.second_user()
) )
# Check mail # Check mail (second one is for admin)
self.assertEqual(len(mail.outbox), 1) self.assertEqual(len(mail.outbox), 2)
self.assertEqual( self.assertEqual(
mail.outbox[0].subject, mail.outbox[0].subject,
'[Weblate] New language request in Test/Test' '[Weblate] New language request in Test/Test'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment