From e46987e7ea05a3d23a0b70b921be4d4cd71ab1c2 Mon Sep 17 00:00:00 2001 From: Sam Der Date: Wed, 13 Dec 2023 19:43:39 -0800 Subject: [PATCH] fix: type errors in tests --- apps/api/tests/test_sendgrid_handler.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/apps/api/tests/test_sendgrid_handler.py b/apps/api/tests/test_sendgrid_handler.py index bd2d116a..061abee2 100644 --- a/apps/api/tests/test_sendgrid_handler.py +++ b/apps/api/tests/test_sendgrid_handler.py @@ -5,11 +5,22 @@ from httpx import HTTPStatusError, Request, Response from services import sendgrid_handler +from services.sendgrid_handler import PersonalizationData SAMPLE_SENDER = ("noreply@irvinehacks.com", "No Reply IrvineHacks") -SAMPLE_RECIPIENTS = [ - {"email": "hacker0@uci.edu", "name": "Hacker Zero"}, - {"email": "hacker1@uci.edu", "name": "Hacker One"}, +SAMPLE_RECIPIENTS: list[PersonalizationData] = [ + { + "email": "hacker0@uci.edu", + "first_name": "Hacker", + "last_name": "Zero", + "passphrase": None, + }, + { + "email": "hacker1@uci.edu", + "first_name": "Hacker", + "last_name": "One", + "passphrase": None, + }, ]