Integration testing¶
ytree sample data¶
ytree publishes a collection of real-world merger-tree samples for the formats it supports — Consistent-Trees, LHaloTree, AHF, and others. SubLink is not one of those formats, so the SubLink reader isn’t exercised against ytree data; its per-reader unit tests and the cross-reader equivalence suite cover it instead. The collection is hosted on the yt Hub and is too large to bundle with this repository.
Once you’ve downloaded and unpacked the data, point an environment variable at the top-level directory:
export ASTROSYLVA_YTREE_DATA=/path/to/ytree_data
pytest tests/test_ytree_samples.py -v
Each test discovers the per-format sub-directory inside that root
(consistent_trees/, lhalotree/, sublink/, ahf_halos/)
and skips when the expected files aren’t present. With no environment
variable set, the whole file skips silently — CI runs are unaffected.
The smoke tests assert only that each reader loads at least one forest with at least one halo; they’re a way to verify that the parsers don’t choke on real data, not a substitute for the per-reader unit tests.