Skip to content

Commit

Permalink
Merge pull request #258 from 4dn-dcic/moretest
Browse files Browse the repository at this point in the history
more args test
  • Loading branch information
SooLee authored Nov 25, 2019
2 parents 39a1cbe + 7a04abe commit 2a1497b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/tibanna/unicorn/test_ec2_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@ def test_args_parse_input_files_format_error2():
assert 'bucket' in str(ex.value)


def test_args_input_files_w_mount():
input_dict = {'args': {'input_files': {
"file1": {"bucket_name": "a", "object_key": "b", "mount": True}
},
'output_S3_bucket': 'somebucket',
'cwl_main_filename': 'main.cwl',
'cwl_directory_url': 'someurl',
'app_name': 'someapp'}}
args = Args(**input_dict['args'])
assert args.input_files['file1']['mount']


def test_parse_command():
input_dict = {'args': {'command': ['command1', 'command2', 'command3'],
'output_S3_bucket': 'somebucket',
Expand Down

0 comments on commit 2a1497b

Please sign in to comment.