Skip to content

Commit 9507232

Browse files
committed
style: fix flake8 issues
1 parent 6586bbf commit 9507232

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

test/test_client_util.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ def setUp(self):
1919
dirname, filename = os.path.split(os.path.abspath(__file__))
2020
self.testdata_dir = dirname + 'data'
2121
self.local = {'cwl': 'file://' + os.path.join(os.getcwd() + '/testdata/md5sum.cwl'),
22-
'wdl': 'file://' + os.path.join(os.getcwd() + '/testdata/md5sum.wdl'),
23-
'py': 'file://' + os.path.join(os.getcwd() + '/test/test_integration.py'),
24-
'unsupported': 'fake.txt'}
22+
'wdl': 'file://' + os.path.join(os.getcwd() + '/testdata/md5sum.wdl'),
23+
'py': 'file://' + os.path.join(os.getcwd() + '/test/test_integration.py'),
24+
'unsupported': 'fake.txt'}
2525

2626
self.remote = {
2727
'cwl': 'https://raw.githubusercontent.com/common-workflow-language/workflow-service/master/testdata/md5sum.cwl',
@@ -31,9 +31,9 @@ def setUp(self):
3131
'unreachable': 'https://fake.py'}
3232

3333
self.expected = {'cwl': ('v1.0', 'CWL'),
34-
'wdl': ('draft-2', 'WDL'),
35-
'py': ('2.7', 'PY'),
36-
'pyWithPrefix': ('2.7', 'PY')}
34+
'wdl': ('draft-2', 'WDL'),
35+
'py': ('2.7', 'PY'),
36+
'pyWithPrefix': ('2.7', 'PY')}
3737

3838
def tearDown(self):
3939
unittest.TestCase.tearDown(self)

wes_client/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def build_wes_request(workflow_file, json_path, attachments=None):
110110
wf_params = json.dumps(json.load(f))
111111
elif json_path.startswith("http"):
112112
wf_params = modify_jsonyaml_paths(json_path)
113-
else:
113+
else:
114114
wf_params = json_path
115115
wf_version, wf_type = wf_info(workflow_file)
116116

@@ -127,7 +127,7 @@ def build_wes_request(workflow_file, json_path, attachments=None):
127127
if attachments:
128128
for attachment in attachments:
129129
if attachment.startswith("file://"):
130-
attachment = attachment[7:]
130+
attachment = attachment[7:]
131131
attach_f = open(attachment, "rb")
132132
elif attachment.startswith("http"):
133133
attach_f = urlopen(attachment)
@@ -165,7 +165,7 @@ def __init__(self, service):
165165
self.host = service['host']
166166
auth_param = {'token': 'Authorization',
167167
'api_key': 'X-API-KEY',
168-
None: 'Authorization'}
168+
None: 'Authorization'}
169169
self.param_in = auth_param[service['auth_type']]
170170

171171
def get_service_info(self):

0 commit comments

Comments
 (0)