Add /services prefix to all service-related URLs

The URLs will be easier to parse if the parts are clearly labelled.

This is a precursor to making a blueprint for all service-related URLs.
This commit is contained in:
Chris Hill-Scott
2016-01-13 13:14:23 +00:00
parent b4a8c2732d
commit de1c0e36c8
13 changed files with 59 additions and 59 deletions

View File

@@ -6,7 +6,7 @@ def test_should_return_list_of_all_templates(notifications_admin, notifications_
with notifications_admin.test_client() as client:
user = create_test_user('active')
client.login(user)
response = client.get('/123/templates')
response = client.get('/services/123/templates')
assert response.status_code == 200
@@ -16,7 +16,7 @@ def test_should_show_page_for_one_templates(notifications_admin, notifications_a
with notifications_admin.test_client() as client:
user = create_test_user('active')
client.login(user)
response = client.get('/123/templates/template')
response = client.get('/services/123/templates/template')
assert response.status_code == 200
@@ -26,7 +26,7 @@ def test_should_redirect_when_saving_a_template(notifications_admin, notificatio
with notifications_admin.test_client() as client:
user = create_test_user('active')
client.login(user)
response = client.post('/123/templates/template')
response = client.post('/services/123/templates/template')
assert response.status_code == 302
assert response.location == 'http://localhost/123/templates'
assert response.location == 'http://localhost/services/123/templates'