Add stubbed job_id

So that we can get a better sense of what the URLs look like.

Leaving unsigned for now because we don’t know if the ID will be a string or int
or…
This commit is contained in:
Chris Hill-Scott
2016-01-13 12:49:31 +00:00
parent 04b9c120d4
commit b4a8c2732d
8 changed files with 17 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ def test_should_show_page_for_one_job(notifications_admin, notifications_admin_d
with notifications_admin.test_client() as client:
user = create_test_user('active')
client.login(user)
response = client.get('/123/jobs/job')
response = client.get('/123/jobs/456')
assert response.status_code == 200
assert 'dispatch_20151114.csv' in response.get_data(as_text=True)
@@ -30,7 +30,7 @@ def test_should_show_page_for_one_notification(notifications_admin, notification
with notifications_admin.test_client() as client:
user = create_test_user('active')
client.login(user)
response = client.get('/123/jobs/job/notification/3')
response = client.get('/123/jobs/456/notification/3')
assert response.status_code == 200
assert 'Text message' in response.get_data(as_text=True)

View File

@@ -105,4 +105,4 @@ def test_should_redirect_to_job(notifications_admin, notifications_admin_db,
response = client.post('/123/sms/check')
assert response.status_code == 302
assert response.location == 'http://localhost/123/jobs/job'
assert response.location == 'http://localhost/123/jobs/456'