Skip to content

Commit

Permalink
[PRMP-1065] - add row for successful - deceased total in ods reports …
Browse files Browse the repository at this point in the history
…and make tests pass accordingly (#456)
  • Loading branch information
abid-nhs authored Oct 31, 2024
1 parent 8d1dc7d commit 9d9cb03
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lambdas/services/bulk_upload_report_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def generate_individual_ods_report(
total_successful=ods_report.get_total_successful_count(),
total_registered_elsewhere=ods_report.get_total_registered_elsewhere_count(),
total_suspended=ods_report.get_total_suspended_count(),
total_deceased=ods_report.get_total_deceased_count(),
extra_rows=ods_report.get_unsuccessful_reasons_data_rows(),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ Type,Description,Count
Total,Total Successful,5
Total,Successful - Registered Elsewhere,1
Total,Successful - Suspended,1
Total,Successful - Deceased,1
Reason,Could not find the given patient on PDS,2
Reason,Lloyd George file already exists,1
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ Type,Description,Count
Total,Total Successful,5
Total,Successful - Registered Elsewhere,1
Total,Successful - Suspended,1
Total,Successful - Deceased,1
Reason,Could not find the given patient on PDS,2
Reason,Lloyd George file already exists,1
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ def test_generate_individual_ods_report_creates_ods_report(
total_successful=5,
total_registered_elsewhere=1,
total_suspended=1,
total_deceased=1,
extra_rows=[
["Reason", "Could not find the given patient on PDS", 2],
["Reason", "Lloyd George file already exists", 1],
Expand Down

0 comments on commit 9d9cb03

Please sign in to comment.