-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #905 from GSA/notify-api-522
Add carrier to downloadable reports
- Loading branch information
Showing
2 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ def _get_notifications_csv( | |
template_name="foo", | ||
template_type="sms", | ||
job_name="bar.csv", | ||
carrier="ATT Mobility", | ||
provider_response="Did not like it", | ||
status="Delivered", | ||
created_at="1943-04-19 12:00:00", | ||
rows=1, | ||
|
@@ -47,6 +49,8 @@ def _get( | |
"template_type": template_type, | ||
"template": {"name": template_name, "template_type": template_type}, | ||
"job_name": job_name, | ||
"carrier": carrier, | ||
"provider_response": provider_response, | ||
"status": status, | ||
"created_at": created_at, | ||
"updated_at": None, | ||
|
@@ -82,15 +86,15 @@ def get_notifications_csv_mock( | |
( | ||
None, | ||
[ | ||
"Recipient,Template,Type,Sent by,Job,Status,Time\n", | ||
"[email protected],foo,sms,,,Delivered,1943-04-19 12:00:00\r\n", | ||
"Recipient,Template,Type,Sent by,Job,Carrier,Carrier Response,Status,Time\n", | ||
"[email protected],foo,sms,,,ATT Mobility,Did not like it,Delivered,1943-04-19 12:00:00\r\n", | ||
], | ||
), | ||
( | ||
"Anne Example", | ||
[ | ||
"Recipient,Template,Type,Sent by,Job,Status,Time\n", | ||
"[email protected],foo,sms,Anne Example,,Delivered,1943-04-19 12:00:00\r\n", | ||
"Recipient,Template,Type,Sent by,Job,Carrier,Carrier Response,Status,Time\n", | ||
"[email protected],foo,sms,Anne Example,,ATT Mobility,Did not like it,Delivered,1943-04-19 12:00:00\r\n", | ||
], | ||
), | ||
], | ||
|
@@ -128,6 +132,8 @@ def test_generate_notifications_csv_without_job( | |
"Type", | ||
"Sent by", | ||
"Job", | ||
"Carrier", | ||
"Carrier Response", | ||
"Status", | ||
"Time", | ||
], | ||
|
@@ -138,6 +144,8 @@ def test_generate_notifications_csv_without_job( | |
"sms", | ||
"Fake Person", | ||
"bar.csv", | ||
"ATT Mobility", | ||
"Did not like it", | ||
"Delivered", | ||
"1943-04-19 12:00:00", | ||
], | ||
|
@@ -157,6 +165,8 @@ def test_generate_notifications_csv_without_job( | |
"Type", | ||
"Sent by", | ||
"Job", | ||
"Carrier", | ||
"Carrier Response", | ||
"Status", | ||
"Time", | ||
], | ||
|
@@ -170,6 +180,8 @@ def test_generate_notifications_csv_without_job( | |
"sms", | ||
"Fake Person", | ||
"bar.csv", | ||
"ATT Mobility", | ||
"Did not like it", | ||
"Delivered", | ||
"1943-04-19 12:00:00", | ||
], | ||
|
@@ -189,6 +201,8 @@ def test_generate_notifications_csv_without_job( | |
"Type", | ||
"Sent by", | ||
"Job", | ||
"Carrier", | ||
"Carrier Response", | ||
"Status", | ||
"Time", | ||
], | ||
|
@@ -202,6 +216,8 @@ def test_generate_notifications_csv_without_job( | |
"sms", | ||
"Fake Person", | ||
"bar.csv", | ||
"ATT Mobility", | ||
"Did not like it", | ||
"Delivered", | ||
"1943-04-19 12:00:00", | ||
], | ||
|