Hinweise optimiert
Test and publish container images / test (push) Successful in 2m27s
Test and publish container images / publish (push) Failing after 4s

This commit is contained in:
BuTzZ
2026-07-27 13:04:32 +02:00
parent 9813a1fafb
commit b98ec8bc6f
34 changed files with 500 additions and 399 deletions
-5
View File
@@ -37,7 +37,6 @@ KEPT_TAGS = {
"access",
"boat",
"construction",
"depth",
"disused",
"maxdraft",
"maxdraught",
@@ -45,7 +44,6 @@ KEPT_TAGS = {
"maxheight:physical",
"maxwidth",
"maxwidth:physical",
"min_depth",
"motor_vehicle",
"motorboat",
"name",
@@ -55,10 +53,7 @@ KEPT_TAGS = {
"route",
"seamark:bridge:clearance_height",
"seamark:bridge:clearance_height_safe",
"seamark:fairway:minimum_depth",
"seamark:lock:chamber_width",
"seamark:navigation_line:minimum_depth",
"seamark:recommended_track:minimum_depth",
"seamark:restriction:max_draught",
"seamark:type",
"ship",
+20 -1
View File
@@ -68,7 +68,18 @@ class BuildLocalFairwaysTest(unittest.TestCase):
(3, 7.2, 53.2),
],
[
(100, 1, [1, 2], {"waterway": "canal", "name": "DE Kanal"}),
(
100,
1,
[1, 2],
{
"waterway": "canal",
"name": "DE Kanal",
"depth": "4",
"seamark:fairway:minimum_depth": "3.5",
"maxdraught": "2.5",
},
),
(
200,
1,
@@ -143,6 +154,14 @@ class BuildLocalFairwaysTest(unittest.TestCase):
self.assertEqual(shared_way["tags"]["name"], "Nieuwe lijn")
self.assertEqual(len(shared_way["coordinates"]), 3)
canal_way = next(way for way in document["ways"] if way["id"] == "100")
self.assertEqual(canal_way["tags"]["maxdraught"], "2.5")
self.assertNotIn("depth", canal_way["tags"])
self.assertNotIn(
"seamark:fairway:minimum_depth",
canal_way["tags"],
)
cross_border_way = next(
way for way in document["ways"] if way["id"] == "500"
)