test(sendgrid): remove redundant docstrings from reply_to tests

This commit is contained in:
michelligabriele 2026-09-04 13:45:15 +02:00
parent 8fc119058e
commit 7b9910faef
No known key found for this signature in database

View file

@ -137,7 +137,6 @@ async def test_send_email_multiple_recipients(mock_env_vars, mock_async_client):
@pytest.mark.asyncio
async def test_send_email_sets_reply_to_when_configured(monkeypatch, mock_async_client):
"""SENDGRID_REPLY_TO_EMAIL is sent as the payload's reply_to and leaves from alone."""
monkeypatch.setenv("SENDGRID_API_KEY", "test_api_key")
monkeypatch.delenv("SENDGRID_SENDER_EMAIL", raising=False)
monkeypatch.setenv("SENDGRID_REPLY_TO_EMAIL", "litellm-alerts@example.com")
@ -159,8 +158,6 @@ async def test_send_email_sets_reply_to_when_configured(monkeypatch, mock_async_
@pytest.mark.asyncio
async def test_send_email_omits_reply_to_when_not_configured(monkeypatch, mock_async_client):
"""With SENDGRID_REPLY_TO_EMAIL unset the key is absent, not null, so SendGrid
keeps defaulting Reply-To to the sender."""
monkeypatch.setenv("SENDGRID_API_KEY", "test_api_key")
monkeypatch.delenv("SENDGRID_REPLY_TO_EMAIL", raising=False)