File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 39
39
@pytest .fixture
40
40
def build_test_samples (tmp_path ):
41
41
42
- test_path1 = tmp_path / "test_file1.root"
43
- test_path2 = tmp_path / "test_file2.root"
42
+ test_path1 = str ( tmp_path / "test_file1.root" )
43
+ test_path2 = str ( tmp_path / "test_file2.root" )
44
44
# example data for two branches
45
45
tree_data1 = {
46
46
"branch1" : np .ones (100 ),
@@ -57,7 +57,7 @@ def build_test_samples(tmp_path):
57
57
file ["Tree" ] = tree_data2
58
58
59
59
#Dict like servicex.deliver() output
60
- sx_dict = {"Test-Sample1" : test_path1 , "Test-Sample2" : test_path2 }
60
+ sx_dict = {"Test-Sample1" : [ test_path1 ] , "Test-Sample2" : [ test_path2 ] }
61
61
62
62
return sx_dict
63
63
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ def build_test_samples(tmp_path):
14
14
"""
15
15
Creates two Parquet files with sample data for testing.
16
16
"""
17
- test_path1 = tmp_path / "test_file1.parquet"
18
- test_path2 = tmp_path / "test_file2.parquet"
17
+ test_path1 = str ( tmp_path / "test_file1.parquet" )
18
+ test_path2 = str ( tmp_path / "test_file2.parquet" )
19
19
20
20
# Example data for two branches
21
21
data1 = ak .Array ({
@@ -33,7 +33,7 @@ def build_test_samples(tmp_path):
33
33
ak .to_parquet (data2 , test_path2 )
34
34
35
35
# Dict simulating servicex.deliver() output
36
- sx_dict = {"Test-Sample1" : test_path1 , "Test-Sample2" : test_path2 }
36
+ sx_dict = {"Test-Sample1" : [ test_path1 ] , "Test-Sample2" : [ test_path2 ] }
37
37
38
38
return sx_dict
39
39
You can’t perform that action at this time.
0 commit comments