Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccacremona committed Oct 10, 2023
1 parent 9263d9f commit de28c32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perma_web/perma/tests/test_views_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def test_contact_standard_submit_required(self):
self.assertIn("Referring Page: " + self.refering_page, message.body)
self.assertIn("Affiliations: (none)", message.body)
self.assertIn("Logged in: false", message.body)
self.assertEqual(message.subject, self.subject_prefix + self.custom_subject)
self.assertTrue(message.subject.startswith(self.subject_prefix + self.custom_subject))
self.assertEqual(message.from_email, self.our_address)
self.assertEqual(message.recipients(), [self.our_address])
self.assertDictEqual(message.extra_headers, {'Reply-To': self.from_email})
Expand Down Expand Up @@ -515,7 +515,7 @@ def test_contact_standard_submit_no_optional(self):
self.assertIn("Referring Page: ", message.body)
self.assertIn("Affiliations: (none)", message.body)
self.assertIn("Logged in: false", message.body)
self.assertEqual(message.subject, self.subject_prefix + 'New message from Perma contact form')
self.assertTrue(message.subject.startswith(self.subject_prefix + 'New message from Perma contact form'))
self.assertEqual(message.from_email, self.our_address )
self.assertEqual(message.recipients(), [self.our_address])
self.assertDictEqual(message.extra_headers, {'Reply-To': self.from_email})
Expand Down

0 comments on commit de28c32

Please sign in to comment.