Skip to content

Commit

Permalink
Fix commpanel test
Browse files Browse the repository at this point in the history
  • Loading branch information
willgearty committed Feb 23, 2024
1 parent 29d8e2a commit 9097584
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions esp/esp/program/modules/tests/commpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def runTest(self):
post_data = {
'subject': 'Test Subject 123',
'body': 'Test Body 123',
'from': 'from@email-server',
'replyto': 'replyto@email-server',
'from': '[email protected]',
'replyto': 'replyto@testserver.learningu.org',
'filterid': filterid,
}
response = self.client.post('/manage/%s/%s' % (self.program.getUrlBase(), 'commfinal'), post_data)
Expand All @@ -113,8 +113,8 @@ def runTest(self):
msg = mail.outbox[0]
self.assertEqual(msg.subject, 'Test Subject 123')
self.assertEqual(msg.body, 'Test Body 123')
self.assertEqual(msg.from_email, 'from@email-server')
self.assertEqual(msg.extra_headers.get('Reply-To', ''), 'replyto@email-server')
self.assertEqual(msg.from_email, '[email protected]')
self.assertEqual(msg.extra_headers.get('Reply-To', ''), 'replyto@testserver.learningu.org')

# Check that the MessageRequest was marked as processed
m = MessageRequest.objects.filter(recipients__id=filterid, subject='Test Subject 123')
Expand Down

0 comments on commit 9097584

Please sign in to comment.