mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Merge pull request #566 from alphagov/refactor-sending
Refactor and tidy up sending
This commit is contained in:
@@ -862,8 +862,8 @@ def mock_get_users_by_service(mocker):
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_s3_upload(mocker):
|
||||
def _upload(upload_id, service_id, filedata, region):
|
||||
pass
|
||||
def _upload(service_id, filedata, region):
|
||||
return fake_uuid()
|
||||
return mocker.patch('app.main.views.send.s3upload', side_effect=_upload)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user