mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-31 03:39:19 -04:00
Store info about files as S3 metadata
Storing things in the session is proving buggy – we still have one user (that we know about) where the session data isn’t getting written, so they’re blocked from uploading a file. Since all the info we’re storing in the session is about the file, it makes sense to store it with the file. This commit only does the writing of the metadata, once we’re sure this is working we can do subsequent work to read it back, and remove reliance on the session.
This commit is contained in:
@@ -2027,6 +2027,11 @@ def mock_s3_download(mocker, content=None):
|
||||
return mocker.patch('app.main.views.send.s3download', side_effect=_download)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_s3_set_metadata(mocker, content=None):
|
||||
return mocker.patch('app.main.views.send.set_metadata_on_csv_upload')
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def sample_invite(mocker, service_one, status='pending'):
|
||||
id_ = str(generate_uuid())
|
||||
|
||||
Reference in New Issue
Block a user