add tests for new check and send notification endpoints

This commit is contained in:
Leo Hemsted
2017-06-26 17:09:51 +01:00
parent de92950d8e
commit a31bf0c5ce
5 changed files with 183 additions and 25 deletions

View File

@@ -37,7 +37,7 @@ def test_client_gets_notifications_for_service_and_job_by_page(mocker, arguments
def test_send_notification(mocker, logged_in_client, active_user_with_permissions):
mock_post = mocker.patch('app.notify_client.notification_api_client.NotificationApiClient.post')
NotificationApiClient().send_notification('foo', template_id='bar', recipient='07700900001')
NotificationApiClient().send_notification('foo', template_id='bar', recipient='07700900001', personalisation=None)
mock_post.assert_called_once_with(
url='/service/foo/send-notification',
data={