fix(brevo): passer X-Sib-Sandbox dans le body email, pas en header HTTP (#87)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Colin Maudry
2026-06-24 16:15:07 +02:00
parent c3408ecc3c
commit 3f1c39d5a6
3 changed files with 34 additions and 30 deletions
+1
View File
@@ -37,6 +37,7 @@ def test_send_verification_email(fake_client):
assert call["to"][0].email == "a@b.c"
assert call["sender"].email == "noreply@decp.info"
assert "/auth/verify-email?token=TOKEN123" in call["params"]["link"]
assert call["headers"] == {"X-Sib-Sandbox": "drop"} # DEVELOPMENT=true en tests
def test_send_reset_email(fake_client):