Change client_request so its kwargs look more like url_for

This commit is contained in:
Leo Hemsted
2017-06-19 12:31:14 +01:00
parent 20bb34849d
commit 580c225ca2
4 changed files with 15 additions and 16 deletions

View File

@@ -39,10 +39,8 @@ def test_notification_status_page_shows_details(
):
page = client_request.get(
'main.view_notification',
endpoint_kwargs={
'service_id': service_one['id'],
'notification_id': fake_uuid
}
service_id=service_one['id'],
notification_id=fake_uuid
)
assert page.find('div', {'class': 'sms-message-wrapper'}).text.strip() == 'service one: template content'
@@ -72,10 +70,8 @@ def test_notification_status_page_shows_correct_numbers(
page = client_request.get(
'main.view_notification',
endpoint_kwargs={
'service_id': service_one['id'],
'notification_id': fake_uuid
}
service_id=service_one['id'],
notification_id=fake_uuid
)
big_numbers = page.find_all('div', {'class': 'big-number-number'})