File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Generated during tests
2
2
pytestdebug.log
3
3
tmp /
4
+ * .sif
5
+ involucro
4
6
5
7
# Python temps
6
8
__pycache__ /
@@ -59,4 +61,3 @@ cwltool/_version.py
59
61
cwltool_deps
60
62
docs /_build /
61
63
docs /autoapi /
62
-
Original file line number Diff line number Diff line change
1
+ """Test the loadContents feature."""
2
+ import json
3
+ from pathlib import Path
4
+
5
+ from cwltool .main import main
6
+
7
+ from .util import get_data
8
+
9
+
10
+ def test_load_contents_file_array (tmp_path : Path ) -> None :
11
+ """Ensures that a File[] input with loadContents loads each file."""
12
+ params = [
13
+ "--outdir" , str (tmp_path ),
14
+ get_data ("tests/load_contents-array.cwl" ),
15
+ "tests/load_contents-array.yml" ,
16
+ ]
17
+ assert main (params ) == 0
18
+ with open (tmp_path / "data.json" ) as out_fd :
19
+ data = json .load (out_fd )
20
+ assert data == {"data" : [1 , 2 ]}
You can’t perform that action at this time.
0 commit comments