Skip to content

Commit

Permalink
adjust test for notification
Browse files Browse the repository at this point in the history
  • Loading branch information
bengolder committed May 19, 2016
1 parent 21ed9ef commit b17414b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/unit/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,11 @@ def test_send_submission_notification(self, app, sg, sendgrid, request, render_t
fake_Mail.return_value = message
sendgrid.Mail = fake_Mail
tasks.send_submission_notification(submission)
fake_Mail.assert_any_call(
fake_Mail.assert_called_once_with(
subject="New application to https://localtesting:80/yolo received <nice time format>",
to='me',
text=fake_rendered_template
)
fake_Mail.assert_any_call(
subject="You’ve received a new online application to Clean Slate from Code for America",
to='louise',
text=fake_rendered_template
)
sg.send.assert_any_call(message)


Expand Down

0 comments on commit b17414b

Please sign in to comment.