Skip to content

Commit

Permalink
runtime/task: simple test of having one file in multiple outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Jun 13, 2019
1 parent b7f399b commit 6d66bf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_4taskrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def test_compound_files(self):
output {
File stdout = stdout()
Array[File] friends = ["alyssa.csv", "ben.csv"]
File alyssa_csv = "alyssa.csv"
}
}
""", {"files": [ os.path.join(self._dir, "alyssa.txt"),
Expand All @@ -296,6 +297,8 @@ def test_compound_files(self):
self.assertEqual(infile.read(), "Alyssa,")
with open(outputs["friends"][1]) as infile:
self.assertEqual(infile.read(), "Ben,")
with open(outputs["alyssa_csv"]) as infile:
self.assertEqual(infile.read(), "Alyssa,")

def test_optional_inputs(self):
code = R"""
Expand Down

0 comments on commit 6d66bf4

Please sign in to comment.