mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
fix
This commit is contained in:
@@ -100,6 +100,7 @@ def transform_into_notification_by_type_json(total_notifications):
|
|||||||
def transform_processing_time_results_to_json(processing_time_results):
|
def transform_processing_time_results_to_json(processing_time_results):
|
||||||
j = []
|
j = []
|
||||||
for x in processing_time_results:
|
for x in processing_time_results:
|
||||||
|
print(f"HERE IS A PROCESSING TIME RESULT {x}")
|
||||||
j.append({"date": x.date, "percentage_under_10_seconds": x.percentage})
|
j.append({"date": x.date, "percentage_under_10_seconds": x.percentage})
|
||||||
|
|
||||||
return j
|
return j
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ def test_get_processing_time_percentage_for_date_range_handles_zero_cases(
|
|||||||
)
|
)
|
||||||
|
|
||||||
results = get_processing_time_percentage_for_date_range("2021-02-21", "2021-02-22")
|
results = get_processing_time_percentage_for_date_range("2021-02-21", "2021-02-22")
|
||||||
|
print(f"HERE ARE THE RESULTS {results}")
|
||||||
assert len(results) == 2
|
assert len(results) == 2
|
||||||
assert results[0].date == "2021-02-21"
|
assert results[0].date == "2021-02-21"
|
||||||
assert results[0].messages_total == 0
|
assert results[0].messages_total == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user