From 14dfbfc3e2ca8a61d2213d32c0b0855f61bab09c Mon Sep 17 00:00:00 2001 From: Eduard Kerkhoven Date: Sat, 17 Oct 2026 08:23:34 +0200 Subject: [PATCH] test: find RAVEN's source and tutorials in its src/ layout RAVEN moved its source under src/ and its tutorial models to tutorials/data/; the parity fixtures skipped every check against such a checkout. --- tests/parity/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/parity/conftest.py b/tests/parity/conftest.py index 53b7077..2d0c973 100644 --- a/tests/parity/conftest.py +++ b/tests/parity/conftest.py @@ -34,7 +34,7 @@ def raven_root() -> Path: "pytest -m parity" ) path = Path(root) - if not (path / "io").is_dir(): + if not (path / "src" / "io").is_dir(): pytest.skip(f"RAVEN_ROOT={path} does not look like a RAVEN checkout") return path @@ -46,8 +46,8 @@ def raven_models(raven_root: Path) -> dict[str, Path]: These were written by MATLAB RAVEN's own ``writeYAMLmodel``, which makes them reference data for the Python reader without needing MATLAB. """ - tutorial = raven_root / "tutorial" - found = {p.name: p for p in sorted(tutorial.glob("*.yml"))} + tutorial = raven_root / "tutorials" / "data" + found = {p.name: p for p in sorted(tutorial.rglob("*.yml"))} if not found: pytest.skip(f"no YAML models under {tutorial}") return found