projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '11968-ws-startup-crash'
[arvados.git]
/
sdk
/
cwl
/
tests
/
test_make_output.py
diff --git
a/sdk/cwl/tests/test_make_output.py
b/sdk/cwl/tests/test_make_output.py
index a1cb605bfc83f78605c72b8eb10c47c73e1c95de..05c9ee7410ac7b12ac1ae29770db0617709ce710 100644
(file)
--- a/
sdk/cwl/tests/test_make_output.py
+++ b/
sdk/cwl/tests/test_make_output.py
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
import functools
import json
import logging
import functools
import json
import logging
@@
-35,7
+39,7
@@
class TestMakeOutput(unittest.TestCase):
final.open.return_value = openmock
openmock.__enter__.return_value = cwlout
final.open.return_value = openmock
openmock.__enter__.return_value = cwlout
- runner.make_output_collection("Test output", "tag0,tag1,tag2", {
+
_, runner.final_output_collection =
runner.make_output_collection("Test output", "tag0,tag1,tag2", {
"foo": {
"class": "File",
"location": "keep:99999999999999999999999999999991+99/foo.txt",
"foo": {
"class": "File",
"location": "keep:99999999999999999999999999999991+99/foo.txt",
@@
-45,7
+49,8
@@
class TestMakeOutput(unittest.TestCase):
"bar": {
"class": "File",
"location": "keep:99999999999999999999999999999992+99/bar.txt",
"bar": {
"class": "File",
"location": "keep:99999999999999999999999999999992+99/bar.txt",
- "basename": "baz.txt"
+ "basename": "baz.txt",
+ "size": 4
}
})
}
})
@@
-55,11
+60,13
@@
class TestMakeOutput(unittest.TestCase):
self.assertEqual("""{
"bar": {
"class": "File",
self.assertEqual("""{
"bar": {
"class": "File",
- "location": "baz.txt"
+ "location": "baz.txt",
+ "size": 4
},
"foo": {
"class": "File",
},
"foo": {
"class": "File",
- "location": "foo.txt"
+ "location": "foo.txt",
+ "size": 3
}
}""", cwlout.getvalue())
}
}""", cwlout.getvalue())