Merge pull request #566 from alphagov/refactor-sending

Refactor and tidy up sending
This commit is contained in:
Chris Hill-Scott
2016-05-17 11:40:09 +01:00
5 changed files with 62 additions and 55 deletions

View File

@@ -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)