Commit 35f417b8 authored by Robert's avatar Robert

Fix tests

parent 043ba25d
......@@ -267,7 +267,8 @@ class ContentReplyByEmailViaLMTP(memberships.AuthenticatedMemberMixin, MailInjec
reply_to = get_new_mails()[0].extra_headers['Reply-To']
self.inject_mail(self.gestalt.user.email, [reply_to],
data=self.assemble_mail_data({}, body="Text B"))
self.assertExists(models.Contribution, content=a.content.get(), text__text='Text B')
self.assertTrue(models.Contribution.objects_with_internal.filter(
content=a.content.get(), text__text='Text B').exists())
class ContentReplyByEmailViaDjangoMailbox(memberships.AuthenticatedMemberMixin, tests.Test):
......@@ -286,9 +287,8 @@ class ContentReplyByEmailViaDjangoMailbox(memberships.AuthenticatedMemberMixin,
body='Delivered-To: {}\n\nText B'.format(reply_to))
# send signal like getmail would
mailbox_signals.message_received.send(self, message=msg)
self.assertExists(
models.Contribution, content=a.content.get(),
text__text='Text B')
self.assertTrue(models.Contribution.objects_with_internal.filter(
content=a.content.get(), text__text='Text B').exists())
class ConversationInitiateByEmailViaDjangoMailbox(memberships.MemberMixin, tests.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