From 456291d630a4f081546431e89fadc4b384336145 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 26 Apr 2016 16:28:16 +0100 Subject: [PATCH] Put URL to service in request to go live ticket So that: - we know what environment the request has come from - a platform admin user can jump straight to that service to check it out --- app/main/views/service_settings.py | 2 +- tests/app/main/views/test_service_settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/views/service_settings.py b/app/main/views/service_settings.py index 7d68ea6a2..30543f226 100644 --- a/app/main/views/service_settings.py +++ b/app/main/views/service_settings.py @@ -102,7 +102,7 @@ def service_request_to_go_live(service_id): current_user.name, current_user.email_address, current_service['name'], - current_service['id'], + url_for('main.service_dashboard', service_id=current_service['id'], _external=True), form.usage.data ) } diff --git a/tests/app/main/views/test_service_settings.py b/tests/app/main/views/test_service_settings.py index 18ee47d70..7764606f4 100644 --- a/tests/app/main/views/test_service_settings.py +++ b/tests/app/main/views/test_service_settings.py @@ -239,7 +239,7 @@ def test_should_redirect_after_request_to_go_live( data={ 'subject': 'Request to go live', 'department_id': ANY, - 'message': 'From Test User on behalf of Test Service (6ce466d0-fd6a-11e5-82f5-e0accb9d11a6)\n\nUsage estimate\n---\n\nOne million messages', # noqa + 'message': 'From Test User on behalf of Test Service (http://localhost/services/6ce466d0-fd6a-11e5-82f5-e0accb9d11a6/dashboard)\n\nUsage estimate\n---\n\nOne million messages', # noqa 'person_email': ANY }, headers=ANY