aboutsummaryrefslogtreecommitdiff
path: root/web/server_test.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-08-21 10:30:27 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-08-21 10:30:27 +0200
commit44f7333d9deef81d3468e20b378c63692a9406ec (patch)
treeaeacb99247dba4e48ee61e2792f5476a3770795a /web/server_test.go
parent6667ee479c06c14bb182f36a0a9ee704fca6218d (diff)
Use OSM as the single source of mountain passes
Replace the centcols CSV download/enrichment pipeline with OSM PBF extraction as the primary (only) source: merge osmpass into mountain_pass, drop the centcols table and model fields, filter to named passes with elevation, and remove the centcols CLI flags.
Diffstat (limited to 'web/server_test.go')
-rw-r--r--web/server_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/server_test.go b/web/server_test.go
index 09864e4..299575e 100644
--- a/web/server_test.go
+++ b/web/server_test.go
@@ -115,11 +115,11 @@ func TestHandlerRendersRideDetailWithEmbeddedRoute(t *testing.T) {
DistanceM: 20_000,
}))
_, err := db.Exec(`
- INSERT INTO mountain_passes (external_id, name, country_code, department_code, elevation, latitude, longitude)
- VALUES (?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?)
+ INSERT INTO mountain_passes (osm_id, name, elevation, latitude, longitude)
+ VALUES (?, ?, ?, ?, ?), (?, ?, ?, ?, ?)
`,
- "550e8400-e29b-41d4-a716-446655440000", "Nearby pass", "FR", "13", 400, 43.05, 5.05,
- "6ba7b810-9dad-41d1-80b4-00c04fd430c8", "Distant pass", "FR", "13", 500, 43.2, 5.2,
+ 1, "Nearby pass", 400, 43.05, 5.05,
+ 2, "Distant pass", 500, 43.2, 5.2,
)
require.NoError(t, err)
item, found, err := rides.GetByExternalID(db, "strava:550e8400-e29b-41d4-a716-446655440000")