This commit is contained in:
Kenneth Kehl
2024-11-18 15:30:29 -08:00
parent 2abb14d85a
commit 84ebf113a3
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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