mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 22:42:28 -05:00
change test file name
This commit is contained in:
@@ -69,34 +69,34 @@ def test_get_paginated_uploads(mocker):
|
||||
mock_pagination, ".get_uploads_by_service", service_id="service_id_123"
|
||||
)
|
||||
|
||||
expected_data = {
|
||||
"data": [
|
||||
{
|
||||
"id": "upload_1",
|
||||
"original_file_name": "file1.csv",
|
||||
"notification_count": 100,
|
||||
"created_at": "2024-10-01 12:00:00",
|
||||
"upload_type": "job",
|
||||
"template_type": "sms",
|
||||
"recipient": "recipient@example.com",
|
||||
"statistics": [
|
||||
{"status": "delivered", "count": 90},
|
||||
{"status": "failed", "count": 10},
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": "upload_2",
|
||||
"original_file_name": "file2.csv",
|
||||
"notification_count": 50,
|
||||
"created_at": "2024-10-03 12:00:00",
|
||||
"upload_type": "letter",
|
||||
"template_type": "letter",
|
||||
"recipient": "recipient2@example.com",
|
||||
"statistics": [],
|
||||
},
|
||||
],
|
||||
"page_size": 10,
|
||||
"total": 2,
|
||||
"links": {"self": "/uploads?page=1"},
|
||||
}
|
||||
assert result == expected_data
|
||||
# expected_data = {
|
||||
# "data": [
|
||||
# {
|
||||
# "id": "upload_1",
|
||||
# "original_file_name": "file1.csv",
|
||||
# "notification_count": 100,
|
||||
# "created_at": "2024-10-01 12:00:00",
|
||||
# "upload_type": "job",
|
||||
# "template_type": "sms",
|
||||
# "recipient": "recipient@example.com",
|
||||
# "statistics": [
|
||||
# {"status": "delivered", "count": 90},
|
||||
# {"status": "failed", "count": 10},
|
||||
# ],
|
||||
# },
|
||||
# {
|
||||
# "id": "upload_2",
|
||||
# "original_file_name": "file2.csv",
|
||||
# "notification_count": 50,
|
||||
# "created_at": "2024-10-03 12:00:00",
|
||||
# "upload_type": "letter",
|
||||
# "template_type": "letter",
|
||||
# "recipient": "recipient2@example.com",
|
||||
# "statistics": [],
|
||||
# },
|
||||
# ],
|
||||
# "page_size": 10,
|
||||
# "total": 2,
|
||||
# "links": {"self": "/uploads?page=1"},
|
||||
# }
|
||||
# assert result == expected_data
|
||||
|
||||
Reference in New Issue
Block a user