Get the path to the test resources directory.
()
| 70 | |
| 71 | |
| 72 | def 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 | |
| 80 | def read_flight_resource(path): |
no test coverage detected