MCPcopy Create free account
hub / github.com/apache/arrow / resource_root

Function resource_root

python/pyarrow/tests/test_flight.py:74–79  ·  view source on GitHub ↗

Get the path to the test resources directory.

()

Source from the content-addressed store, hash-verified

72
73
74def resource_root():
75 """Get the path to the test resources directory."""
76 if not os.environ.get("ARROW_TEST_DATA"):
77 raise RuntimeError("Test resources not found; set "
78 "ARROW_TEST_DATA to <repo root>/testing/data")
79 return pathlib.Path(os.environ["ARROW_TEST_DATA"]) / "flight"
80
81
82def read_flight_resource(path):

Callers 1

read_flight_resourceFunction · 0.85

Calls 2

getMethod · 0.45
PathMethod · 0.45

Tested by

no test coverage detected