@@ -532,9 +532,9 @@ def test_wf_st_2(plugin):
532
532
sub (wf )
533
533
534
534
results = wf .result ()
535
- # expected: [[ ({"test7.x": 1}, 3), ({"test7.x": 2}, 4)] ]
536
- assert results [0 ][ 0 ] .output .out == 3
537
- assert results [0 ][ 1 ].output .out == 4
535
+ # expected: [({"test7.x": 1}, 3), ({"test7.x": 2}, 4)]
536
+ assert results [0 ].output .out == 3
537
+ assert results [1 ].output .out == 4
538
538
# checking all directories
539
539
assert wf .output_dir
540
540
for odir in wf .output_dir :
@@ -554,8 +554,8 @@ def test_wf_ndst_2(plugin):
554
554
sub (wf )
555
555
556
556
results = wf .result ()
557
- # expected: [[ ({"test7.x": 1}, 3), ({"test7.x": 2}, 4)] ]
558
- assert results .output .out [ 0 ] == [3 , 4 ]
557
+ # expected: [({"test7.x": 1}, 3), ({"test7.x": 2}, 4)]
558
+ assert results .output .out == [3 , 4 ]
559
559
assert wf .output_dir .exists ()
560
560
561
561
@@ -625,10 +625,10 @@ def test_wf_st_4(plugin):
625
625
626
626
results = wf .result ()
627
627
# expected: [
628
- # [ ({"test7.x": 1, "test7.y": 11}, 13), ({"test7.x": 2, "test.y": 12}, 26)]
628
+ # ({"test7.x": 1, "test7.y": 11}, 13), ({"test7.x": 2, "test.y": 12}, 26)
629
629
# ]
630
- assert results [0 ][ 0 ] .output .out == 13
631
- assert results [0 ][ 1 ].output .out == 26
630
+ assert results [0 ].output .out == 13
631
+ assert results [1 ].output .out == 26
632
632
# checking all directories
633
633
assert wf .output_dir
634
634
for odir in wf .output_dir :
@@ -652,9 +652,9 @@ def test_wf_ndst_4(plugin):
652
652
653
653
results = wf .result ()
654
654
# expected: [
655
- # [ ({"test7.x": 1, "test7.y": 11}, 13), ({"test7.x": 2, "test.y": 12}, 26)]
655
+ # ({"test7.x": 1, "test7.y": 11}, 13), ({"test7.x": 2, "test.y": 12}, 26)
656
656
# ]
657
- assert results .output .out [ 0 ] == [13 , 26 ]
657
+ assert results .output .out == [13 , 26 ]
658
658
# checking the output directory
659
659
assert wf .output_dir .exists ()
660
660
@@ -772,7 +772,7 @@ def test_wf_ndst_7(plugin):
772
772
sub (wf )
773
773
774
774
results = wf .result ()
775
- assert results .output .out [ 0 ] == [11 , 22 , 33 ]
775
+ assert results .output .out == [11 , 22 , 33 ]
776
776
777
777
# checking the output directory
778
778
assert wf .output_dir .exists ()
@@ -821,7 +821,7 @@ def test_wf_ndst_9(plugin):
821
821
sub (wf )
822
822
823
823
results = wf .result ()
824
- assert results .output .out [ 0 ] == [11 , 12 , 22 , 24 , 33 , 36 ]
824
+ assert results .output .out == [11 , 12 , 22 , 24 , 33 , 36 ]
825
825
826
826
# checking the output directory
827
827
assert wf .output_dir .exists ()
@@ -1020,13 +1020,13 @@ def test_wf_3nd_st_4(plugin):
1020
1020
sub (wf )
1021
1021
1022
1022
results = wf .result ()
1023
- assert len (results ) == 1
1024
- assert results [0 ][ 0 ] .output .out == 39
1025
- assert results [0 ][ 1 ].output .out == 42
1026
- assert results [0 ][ 2 ].output .out == 52
1027
- assert results [0 ][ 3 ].output .out == 56
1028
- assert results [0 ][ 4 ].output .out == 65
1029
- assert results [0 ][ 5 ].output .out == 70
1023
+ assert len (results ) == 6
1024
+ assert results [0 ].output .out == 39
1025
+ assert results [1 ].output .out == 42
1026
+ assert results [2 ].output .out == 52
1027
+ assert results [3 ].output .out == 56
1028
+ assert results [4 ].output .out == 65
1029
+ assert results [5 ].output .out == 70
1030
1030
# checking all directories
1031
1031
assert wf .output_dir
1032
1032
for odir in wf .output_dir :
@@ -1056,8 +1056,8 @@ def test_wf_3nd_ndst_4(plugin):
1056
1056
# assert wf.output_dir.exists()
1057
1057
results = wf .result ()
1058
1058
1059
- assert len (results .output .out ) == 1
1060
- assert results .output .out == [[ 39 , 42 , 52 , 56 , 65 , 70 ] ]
1059
+ assert len (results .output .out ) == 6
1060
+ assert results .output .out == [39 , 42 , 52 , 56 , 65 , 70 ]
1061
1061
# checking the output directory
1062
1062
assert wf .output_dir .exists ()
1063
1063
@@ -1354,8 +1354,8 @@ def test_wf_st_singl_1(plugin):
1354
1354
sub (wf )
1355
1355
1356
1356
results = wf .result ()
1357
- assert results [0 ][ 0 ] .output .out == 13
1358
- assert results [0 ][ 1 ].output .out == 24
1357
+ assert results [0 ].output .out == 13
1358
+ assert results [1 ].output .out == 24
1359
1359
# checking all directories
1360
1360
assert wf .output_dir
1361
1361
for odir in wf .output_dir :
@@ -1379,7 +1379,7 @@ def test_wf_ndst_singl_1(plugin):
1379
1379
sub (wf )
1380
1380
1381
1381
results = wf .result ()
1382
- assert results .output .out [ 0 ] == [13 , 24 ]
1382
+ assert results .output .out == [13 , 24 ]
1383
1383
# checking the output directory
1384
1384
assert wf .output_dir .exists ()
1385
1385
@@ -2735,7 +2735,7 @@ def test_workflow_combine1(tmpdir):
2735
2735
2736
2736
assert result .output .out_pow == [1 , 1 , 4 , 8 ]
2737
2737
assert result .output .out_iden1 == [[1 , 4 ], [1 , 8 ]]
2738
- assert result .output .out_iden2 == [[[ 1 , 4 ], [1 , 8 ] ]]
2738
+ assert result .output .out_iden2 == [[1 , 4 ], [1 , 8 ]]
2739
2739
2740
2740
2741
2741
def test_workflow_combine2 (tmpdir ):
@@ -2749,7 +2749,7 @@ def test_workflow_combine2(tmpdir):
2749
2749
result = wf1 (plugin = "cf" )
2750
2750
2751
2751
assert result .output .out_pow == [[1 , 4 ], [1 , 8 ]]
2752
- assert result .output .out_iden == [[[ 1 , 4 ], [1 , 8 ] ]]
2752
+ assert result .output .out_iden == [[1 , 4 ], [1 , 8 ]]
2753
2753
2754
2754
2755
2755
# testing lzout.all to collect all of the results and let FunctionTask deal with it
0 commit comments