From 7399c3c6c0ba34750cc85f6a4a15db0f97c69a5e Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 4 Feb 2016 15:26:43 +0000 Subject: [PATCH] Add a flash message to confirm sending has started --- app/main/views/sms.py | 1 + tests/app/main/views/test_sms.py | 1 + 2 files changed, 2 insertions(+) diff --git a/app/main/views/sms.py b/app/main/views/sms.py index 07aefbff5..28e44a06f 100644 --- a/app/main/views/sms.py +++ b/app/main/views/sms.py @@ -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)) diff --git a/tests/app/main/views/test_sms.py b/tests/app/main/views/test_sms.py index 61b800585..cc0ac6422 100644 --- a/tests/app/main/views/test_sms.py +++ b/tests/app/main/views/test_sms.py @@ -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)