mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
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:
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user