change test file name

This commit is contained in:
Kenneth Kehl
2024-10-24 09:33:21 -07:00
parent af07a7b54c
commit a0b66f4284

View File

@@ -69,34 +69,34 @@ def test_get_paginated_uploads(mocker):
mock_pagination, ".get_uploads_by_service", service_id="service_id_123" mock_pagination, ".get_uploads_by_service", service_id="service_id_123"
) )
expected_data = { # expected_data = {
"data": [ # "data": [
{ # {
"id": "upload_1", # "id": "upload_1",
"original_file_name": "file1.csv", # "original_file_name": "file1.csv",
"notification_count": 100, # "notification_count": 100,
"created_at": "2024-10-01 12:00:00", # "created_at": "2024-10-01 12:00:00",
"upload_type": "job", # "upload_type": "job",
"template_type": "sms", # "template_type": "sms",
"recipient": "recipient@example.com", # "recipient": "recipient@example.com",
"statistics": [ # "statistics": [
{"status": "delivered", "count": 90}, # {"status": "delivered", "count": 90},
{"status": "failed", "count": 10}, # {"status": "failed", "count": 10},
], # ],
}, # },
{ # {
"id": "upload_2", # "id": "upload_2",
"original_file_name": "file2.csv", # "original_file_name": "file2.csv",
"notification_count": 50, # "notification_count": 50,
"created_at": "2024-10-03 12:00:00", # "created_at": "2024-10-03 12:00:00",
"upload_type": "letter", # "upload_type": "letter",
"template_type": "letter", # "template_type": "letter",
"recipient": "recipient2@example.com", # "recipient": "recipient2@example.com",
"statistics": [], # "statistics": [],
}, # },
], # ],
"page_size": 10, # "page_size": 10,
"total": 2, # "total": 2,
"links": {"self": "/uploads?page=1"}, # "links": {"self": "/uploads?page=1"},
} # }
assert result == expected_data # assert result == expected_data