mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Removed moto mocks and mock s3 upload and download directly.
Also updated csv reading to use correct module and do more work to remove empty fields and trailing commas.
This commit is contained in:
@@ -526,3 +526,10 @@ def mock_get_users_by_service(mocker):
|
||||
'failed_login_count': 0}]
|
||||
return data
|
||||
return mocker.patch('app.user_api_client.get_users_for_service', side_effect=_get_users_for_service, autospec=True)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_s3_upload(mocker):
|
||||
def _upload(upload_id, service_id, filedata, region):
|
||||
pass
|
||||
return mocker.patch('app.main.views.send.s3upload', side_effect=_upload)
|
||||
|
||||
Reference in New Issue
Block a user