Skip to content

Commit

Permalink
test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Oct 8, 2020
1 parent dee0444 commit 10aa499
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions tests/test_7runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ def test_call_after(self):
wdl = R"""
version development
task nop {
input {}
input {
Int? y = 0
}
command {}
output {
Int x = 1
Expand All @@ -350,17 +352,55 @@ def test_call_after(self):
call nop as B
}
if (false) {
call nop as C
call nop as C {
input:
y = 3
}
}
call nop as D after A after B after C
scatter (i in range(2)) {
call nop after D
call nop after D {
input:
y = A.x
}
}
}
"""
outp = self._run(wdl, {})
assert outp["nop.x"] == [1, 1]

with self.assertRaises(WDL.Error.NoSuchCall):
self._run(R"""
version development
task nop {
input {}
command {}
output {
Int x = 1
}
}
workflow w {
call nop as A
call nop after B
}
""")

with self.assertRaises(WDL.Error.CircularDependencies):
self._run(R"""
version development
task nop {
input {}
command {}
output {
Int x = 1
}
}
workflow w {
call nop as A
call nop after A after nop
}
""")

class TestDownload(RunnerTestCase):
count_wdl: str = R"""
version 1.0
Expand Down

0 comments on commit 10aa499

Please sign in to comment.