mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-12 17:34:16 -04:00
Make it clearer what you’re downloading
The previous text didn’t make it clear _what_ you were downloading as a CSV file, you had to infer it from the context. And the fact that it’s a CSV file is immaterial, it’s the data you care about, not the format.
This commit is contained in:
@@ -90,12 +90,14 @@ def test_should_show_page_for_one_job(
|
||||
job_id=fake_uuid,
|
||||
status=status_argument,
|
||||
)
|
||||
assert page.find('a', {'download': 'download'})['href'] == url_for(
|
||||
csv_link = page.find('a', {'download': 'download'})
|
||||
assert csv_link['href'] == url_for(
|
||||
'main.view_job_csv',
|
||||
service_id=service_one['id'],
|
||||
job_id=fake_uuid,
|
||||
status=status_argument
|
||||
)
|
||||
assert csv_link.text == 'Download this report'
|
||||
mock_get_notifications.assert_called_with(
|
||||
service_one['id'],
|
||||
fake_uuid,
|
||||
|
||||
Reference in New Issue
Block a user