mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 00:41:35 -05:00
12 lines
307 B
Python
12 lines
307 B
Python
|
|
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'
|
||
|
|
)
|