mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
If the notifications that are being deleted are letters then we need to delete the letter from s3 as well.
This commit is contained in:
@@ -11,7 +11,6 @@ from requests import RequestException
|
||||
from sqlalchemy.orm.exc import NoResultFound
|
||||
|
||||
from app.errors import VirusScanError
|
||||
from app.variables import Retention
|
||||
from app.celery.letters_pdf_tasks import (
|
||||
create_letters_pdf,
|
||||
get_letters_pdf,
|
||||
@@ -112,8 +111,7 @@ def test_create_letters_pdf_calls_s3upload(mocker, sample_letter_notification):
|
||||
bucket_name=current_app.config['LETTERS_PDF_BUCKET_NAME'],
|
||||
file_location=filename,
|
||||
filedata=b'\x00\x01',
|
||||
region=current_app.config['AWS_REGION'],
|
||||
tags={Retention.KEY: Retention.ONE_WEEK}
|
||||
region=current_app.config['AWS_REGION']
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user