Skip to content

Commit

Permalink
added mock response
Browse files Browse the repository at this point in the history
Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW committed Sep 28, 2024
1 parent 9123ff6 commit c8e5bde
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion settings/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,19 @@ def send_email(

if get_var("DEBUG", "").lower() == "true":
print(data)
return SingleEmailSendServiceResponse(True, response=SendEmailResponseTypeDef())
return SingleEmailSendServiceResponse(
True,
response=SendEmailResponseTypeDef(
MessageId="",
ResponseMetadata={
"RequestId": "",
"HTTPStatusCode": 200,
"HTTPHeaders": {},
"RetryAttempts": 0,
"HostId": "",
},
),
)

if EMAIL_SERVICE == "SES":
if not isinstance(data.destination, list):
Expand Down

0 comments on commit c8e5bde

Please sign in to comment.