From 14225027d2749649398e537c82ae1dd892319481 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 17 Jun 2019 16:53:18 +0100 Subject: [PATCH] Fix incorrect argument name in test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This test wasn’t checking the redirect because the argument name was missing the leading underscore. --- tests/app/main/views/test_send.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index 36dc9adec..60750649d 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -565,7 +565,14 @@ def test_upload_valid_csv_redirects_to_check_page( 'main.send_messages', service_id=SERVICE_ONE_ID, template_id=fake_uuid, _data={'file': (BytesIO(''.encode('utf-8')), 'valid.csv')}, _expected_status=302, - expected_redirect='foo' + _expected_redirect=url_for( + 'main.check_messages', + service_id=SERVICE_ONE_ID, + template_id=fake_uuid, + upload_id=fake_uuid, + original_file_name='valid.csv', + _external=True, + ), )