mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-14 23:08:07 -04:00
Change client_request so its kwargs look more like url_for
This commit is contained in:
@@ -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'})
|
||||
|
||||
Reference in New Issue
Block a user