mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 23:02:13 -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):
|
||||
j = []
|
||||
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})
|
||||
|
||||
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")
|
||||
|
||||
print(f"HERE ARE THE RESULTS {results}")
|
||||
assert len(results) == 2
|
||||
assert results[0].date == "2021-02-21"
|
||||
assert results[0].messages_total == 0
|
||||
|
||||
Reference in New Issue
Block a user