Skip to content

Commit bf8d092

Browse files
author
acordeir
committed
deliver-like dict
1 parent e05333c commit bf8d092

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/test_materialization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
@pytest.fixture
4040
def build_test_samples(tmp_path):
4141

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")
4444
# example data for two branches
4545
tree_data1 = {
4646
"branch1": np.ones(100),
@@ -57,7 +57,7 @@ def build_test_samples(tmp_path):
5757
file["Tree"] = tree_data2
5858

5959
#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]}
6161

6262
return sx_dict
6363

tests/test_parquet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def build_test_samples(tmp_path):
1414
"""
1515
Creates two Parquet files with sample data for testing.
1616
"""
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")
1919

2020
# Example data for two branches
2121
data1 = ak.Array({
@@ -33,7 +33,7 @@ def build_test_samples(tmp_path):
3333
ak.to_parquet(data2, test_path2)
3434

3535
# 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]}
3737

3838
return sx_dict
3939

0 commit comments

Comments
 (0)