test(T05): contact router, rental router, email service, rate limiting tests + retry queue

This commit is contained in:
Implementation Engineer
2026-07-10 01:05:58 +02:00
parent db5080df48
commit e220ff7db9
17 changed files with 780 additions and 89 deletions
+5 -4
View File
@@ -35,14 +35,15 @@ async def create_contact(
email_service = EmailService()
try:
await email_service.send_contact_email({
sent = await email_service.send_contact_email({
"name": payload.name,
"email": str(payload.email),
"phone": payload.phone,
"message": payload.message,
})
contact.email_sent = True
await db.commit()
}, db=db)
if sent:
contact.email_sent = True
await db.commit()
except Exception:
pass