test_landing_bounded.py
python
sha256:cb0d285531d52a0703d33e76389edd88459e272649b519516caf3aef09339b11
docs: restore original site design with bounded-v1 copy
Human
9 days ago
| 1 | """Performance tests — landing validator bounded on real kit tree.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | import time |
| 6 | from pathlib import Path |
| 7 | |
| 8 | from tools.landing.validate import validate_landing |
| 9 | |
| 10 | KIT_ROOT = Path(__file__).resolve().parents[2] |
| 11 | |
| 12 | |
| 13 | def test_validate_landing_under_half_second() -> None: |
| 14 | start = time.monotonic() |
| 15 | result = validate_landing(KIT_ROOT) |
| 16 | elapsed = time.monotonic() - start |
| 17 | assert result.ok, result.errors |
| 18 | assert elapsed < 0.5 |
File History
1 commit
sha256:cb0d285531d52a0703d33e76389edd88459e272649b519516caf3aef09339b11
docs: restore original site design with bounded-v1 copy
Human
9 days ago