10460: Want to propagate size fields to output.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 8 Nov 2016 21:03:55 +0000 (16:03 -0500)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 8 Nov 2016 21:03:55 +0000 (16:03 -0500)
sdk/cwl/tests/test_make_output.py

index 776f07c4644f046c9cd9432e7365754112180b6a..3228ad77b3ca9343c0d6ff736b0714c23acd060b 100644 (file)
@@ -42,7 +42,8 @@ class TestMakeOutput(unittest.TestCase):
             "bar": {
                 "class": "File",
                 "location": "keep:99999999999999999999999999999992+99/bar.txt",
-                "basename": "baz.txt"
+                "basename": "baz.txt",
+                "size": 4
             }
         })
 
@@ -52,11 +53,13 @@ class TestMakeOutput(unittest.TestCase):
         self.assertEqual("""{
     "bar": {
         "class": "File",
-        "location": "baz.txt"
+        "location": "baz.txt",
+        "size": 4
     },
     "foo": {
         "class": "File",
-        "location": "foo.txt"
+        "location": "foo.txt",
+        "size": 3
     }
 }""", cwlout.getvalue())