Skip to content

Commit e2608a1

Browse files
committed
Finalizing enum integration and fixing unit tests
1 parent 54dc302 commit e2608a1

25 files changed

+790
-875
lines changed

tests/data/standard_to_cwz/planned_events_translator_data.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
test_parse_work_zone_multipoint_standard = {
1+
test_parse_work_zone_linestring_standard = {
22
"rtdh_timestamp": 1642036259.3099449,
33
"rtdh_message_id": "42fe21b8-102b-43e8-8668-23c55334a201",
44
"event": {
@@ -32,11 +32,12 @@
3232
"types_of_work": [
3333
{"type_name": "below-road-work", "is_architectural_change": True}
3434
],
35+
"vehicle_impact": "some-lanes-closed",
3536
},
3637
},
3738
}
3839

39-
test_parse_work_zone_multipoint_expected = {
40+
test_parse_work_zone_linestring_expected = {
4041
"id": "ce32f52d-1150-5bc9-a9df-7b5c71217d26",
4142
"type": "Feature",
4243
"properties": {
@@ -68,7 +69,7 @@
6869
],
6970
},
7071
"geometry": {
71-
"type": "MultiPoint",
72+
"type": "LineString",
7273
"coordinates": [[-108.279106, 39.195663], [-108.218549, 39.302392]],
7374
},
7475
}
@@ -108,6 +109,7 @@
108109
"restrictions": [],
109110
"beginning_milepost": 50.0,
110111
"ending_milepost": 60.0,
112+
"vehicle_impact": "some-lanes-closed",
111113
},
112114
},
113115
}
@@ -166,7 +168,7 @@
166168
],
167169
},
168170
"geometry": {
169-
"type": "MultiPoint",
171+
"type": "LineString",
170172
"coordinates": [[-108.279106, 39.195663], [-108.218549, 39.302392]],
171173
},
172174
}

0 commit comments

Comments
 (0)