()
| 55 | |
| 56 | @pytest.fixture(scope="session", autouse=True) |
| 57 | def _ensure_fixtures(): |
| 58 | # Regenerate if the user opts in or if fixtures are missing. |
| 59 | if os.environ.get("REGEN_FIXTURES") == "1" or not (FIXTURES / "untransformed").exists(): |
| 60 | if not (BICYCLE / "cameras.bin").exists(): |
| 61 | pytest.skip(f"bicycle fixture not present (expected at {BICYCLE})") |
| 62 | _regenerate_fixtures() |
| 63 | |
| 64 | |
| 65 | def _count_dangling(rec: "pycolmap.Reconstruction") -> int: |
nothing calls this directly
no test coverage detected