mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-12 17:34:16 -04:00
Merge pull request #153 from alphagov/send-started-flash
Add a flash message to confirm sending has started
This commit is contained in:
@@ -115,6 +115,7 @@ def check_sms(service_id, upload_id):
|
||||
else:
|
||||
raise e
|
||||
|
||||
flash('We’ve started sending your messages', 'default_with_tick')
|
||||
return redirect(url_for('main.view_job',
|
||||
service_id=service_id,
|
||||
job_id=upload_id))
|
||||
|
||||
@@ -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 'We’ve 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)
|
||||
|
||||
Reference in New Issue
Block a user