Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix amazon_ses inbound email ESP provider #3509

Merged
merged 17 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions engine/apps/email/tests/test_inbound_email.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import pytest, anymail, json
from apps.email.inbound import InboundEmailWebhookView
from django.urls import reverse
from rest_framework.test import APIClient

@pytest.mark.django_db
def test_amazon_ses_provider_load(
settings
):
settings.INBOUND_EMAIL_ESP = "amazon_ses"

test_data = {
"foo" : "bar"
}
inbound_view = InboundEmailWebhookView()
client = APIClient()
url = reverse("integrations:inbound_email_webhook")
with pytest.raises(anymail.exceptions.AnymailAPIError):
response = client.post(url, data=test_data)
joeyorlando marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions engine/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ opentelemetry-exporter-otlp-proto-grpc==1.15.0
django-dbconn-retry==0.1.7
django-ipware==4.0.2
django-anymail==8.6
django-amazon-ses==4.0.1
django-deprecate-fields==0.1.1
pymdown-extensions==10.0
requests==2.31.0
Expand Down