Add get_s3_file method for use in DVLA processing

This commit is contained in:
Imdad Ahad
2017-05-12 17:39:15 +01:00
parent cd85550889
commit ee484ec368
4 changed files with 78 additions and 3 deletions

11
tests/app/aws/test_s3.py Normal file
View 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'
)