Skip to content

Commit

Permalink
fixed mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
ngreenwald committed Aug 18, 2020
1 parent b3929f0 commit 27bc05a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion caliban_toolbox/anolytics_test.py
Expand Up @@ -33,6 +33,7 @@


def test_create_anolytics_job(mocker, tmp_path):
mocker.patch('getpass.getpass', lambda *x: 'test_api_key')
mocker.patch('boto3.Session', FakeS3)

# create crop directory
Expand All @@ -49,6 +50,7 @@ def test_create_anolytics_job(mocker, tmp_path):


def test_download_anolytics_output(mocker, tmp_path):
mocker.patch('getpass.getpass', lambda *x: 'test_api_key')
mocker.patch('boto3.Session', FakeS3)

# create logs directory with upload log
Expand All @@ -71,4 +73,3 @@ def test_download_anolytics_output(mocker, tmp_path):
missing = anolytics.download_anolytics_output(tmp_path)
missing = [os.path.split(file_path)[1] for file_path in missing]
assert missing == log_dict['filename']

0 comments on commit 27bc05a

Please sign in to comment.