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

Function resource_root

python/pyarrow/tests/test_flight.py:72–77  ·  view source on GitHub ↗

Get the path to the test resources directory.

()

Source from the content-addressed store, hash-verified

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