remove reply_to_addresses from task kwargs

also added a test for aws_ses.send_email to prove it handles reply_to_address correctly
This commit is contained in:
Leo Hemsted
2016-07-04 17:29:41 +01:00
parent e5b417305f
commit 242be97bfa
5 changed files with 29 additions and 53 deletions

View File

@@ -122,7 +122,7 @@ def provider_to_use(notification_type, notification_id):
@notify_celery.task(bind=True, name="send-email-to-provider", max_retries=5, default_retry_delay=5)
def send_email_to_provider(self, service_id, notification_id, reply_to_addresses=None):
def send_email_to_provider(self, service_id, notification_id):
task_start = monotonic()
service = dao_fetch_service_by_id(service_id)
provider = provider_to_use(EMAIL_TYPE, notification_id)

View File

@@ -167,7 +167,6 @@ def send_email(self, service_id,
notification_id,
encrypted_notification,
created_at,
reply_to_addresses=None,
api_key_id=None,
key_type=KEY_TYPE_NORMAL):
task_start = monotonic()