Fixes newly added mail tests to account for model change

This commit is contained in:
Trenton Holmes 2022-04-26 10:03:41 -07:00
parent 330e47f0b7
commit f5c05e1283

View File

@ -852,7 +852,7 @@ class TestMail(DirectoriesMixin, TestCase):
_ = MailRule.objects.create(
name="testrule",
account=account,
action=MailRule.AttachmentAction.MARK_READ,
action=MailRule.MailAction.MARK_READ,
)
self.assertEqual(len(self.bogus_mailbox.messages), 3)
@ -885,7 +885,7 @@ class TestMail(DirectoriesMixin, TestCase):
_ = MailRule.objects.create(
name="testrule",
account=account,
action=MailRule.AttachmentAction.MARK_READ,
action=MailRule.MailAction.MARK_READ,
)
self.assertRaises(