Skip to content

Commit 713f6e2

Browse files
tom-tanmr-c
authored andcommitted
Fix #216 by considering the case of job field with null value
1 parent 7208701 commit 713f6e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cwltest/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _run_test_hook_or_plain(
6767
start_time = time.time()
6868
reltool = os.path.relpath(test["tool"], start=config.test_basedir)
6969
tooluri = urljoin(config.test_baseuri, reltool)
70-
if "job" in test:
70+
if test.get("job", None):
7171
reljob = os.path.relpath(test["job"], start=config.test_basedir)
7272
joburi = urljoin(config.test_baseuri, reljob)
7373
else:

cwltest/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def run_test_plain(
440440

441441
reltool = os.path.relpath(test["tool"], start=config.test_basedir)
442442
tooluri = urljoin(config.test_baseuri, reltool)
443-
if "job" in test:
443+
if test.get("job", None):
444444
reljob = os.path.relpath(test["job"], start=config.test_basedir)
445445
joburi = urljoin(config.test_baseuri, reljob)
446446
else:

0 commit comments

Comments
 (0)