Skip to content

Commit

Permalink
Update skyhook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JayjeetAtGithub committed Mar 9, 2022
1 parent bbb19be commit 8ceed1b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_skyhook_job.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import toml
import uproot
import awkward as ak
from coffea import processor
Expand All @@ -7,6 +8,15 @@


if __name__ == "__main__":
config_dict = {
"skyhook": {
"ceph_config_path": "/tmp/testskyhookjob/ceph.conf",
"ceph_data_pool": "cephfs_data"
}
}
with open('/root/.coffea.toml', 'w') as f:
toml.dump(config_dict, f)

ak.to_parquet(
uproot.lazy("tests/samples/nano_dy.root:Events"),
"nano_dy.parquet",
Expand Down Expand Up @@ -45,7 +55,6 @@
run = processor.Runner(
executor=executor,
use_skyhook=True,
skyhook_options={"ceph_config_path": "/tmp/testskyhookjob/ceph.conf"},
format="parquet",
schema=schemas.NanoAODSchema,
)
Expand Down

0 comments on commit 8ceed1b

Please sign in to comment.