mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-16 20:48:37 -04:00
Add get_s3_file method for use in DVLA processing
This commit is contained in:
11
tests/app/aws/test_s3.py
Normal file
11
tests/app/aws/test_s3.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from app.aws.s3 import get_s3_file
|
||||
|
||||
|
||||
def test_get_s3_file_makes_correct_call(sample_service, sample_job, mocker):
|
||||
get_s3_mock = mocker.patch('app.aws.s3.get_s3_object')
|
||||
get_s3_file('foo-bucket', 'bar-file.txt')
|
||||
|
||||
get_s3_mock.assert_called_with(
|
||||
'foo-bucket',
|
||||
'bar-file.txt'
|
||||
)
|
||||
Reference in New Issue
Block a user