mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-08-26 17:31:37 +00:00
Merge 01051be4ee into c1d57446c2
This commit is contained in:
commit
e6823fdb05
1 changed files with 7 additions and 0 deletions
|
|
@ -1119,6 +1119,13 @@ def _auto_router(monkeypatch, elevation, friction_raw, trails, barriers, meta, e
|
|||
monkeypatch.setattr(_p4trans, "get_surface_change_candidates", lambda *a, **k: [])
|
||||
monkeypatch.setattr(_P4Router, "_spatial_eligible_modes",
|
||||
lambda self, lat, lon, cache: eligible(lat, lon))
|
||||
# Force the road↔road Valhalla bypass (router.py §847-862, PR #46-48) to fall through
|
||||
# to the unified kernel: synthetic fixtures use vehicle-eligible endpoints, which would
|
||||
# otherwise hand off to real Valhalla and produce real-OSM coords that don't match the
|
||||
# in-memory grid (CI: matt-desktop's Valhalla is unreachable so falls through naturally;
|
||||
# deploy VM's Valhalla is healthy and returns real Utah road data → assertions blow up).
|
||||
monkeypatch.setattr(_P4Router, "_route_D_network_only",
|
||||
lambda *a, **kw: {"status": "error", "reason": "synthetic-test stub"})
|
||||
return r
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue