Merge pull request #153 from alphagov/send-started-flash

Add a flash message to confirm sending has started
This commit is contained in:
Adam Shimali
2016-02-05 11:21:53 +00:00
2 changed files with 2 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ def check_sms(service_id, upload_id):
else:
raise e
flash('Weve started sending your messages', 'default_with_tick')
return redirect(url_for('main.view_job',
service_id=service_id,
job_id=upload_id))

View File

@@ -126,4 +126,5 @@ def test_create_job_should_call_api(app_,
response = client.post(url, data=job_data, follow_redirects=True)
assert response.status_code == 200
assert 'Weve started sending your messages' in response.get_data(as_text=True)
mock_create_job.assert_called_with(job_id, service_id, template_id, original_file_name)