Skip to content

Commit e0ada45

Browse files
committed
fix test
1 parent 123c233 commit e0ada45

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

source/jormungandr/jormungandr/street_network/tests/geovelo_test.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,15 @@ def make_data_test():
239239
'''{
240240
"starts": [[48.2, 2.0, null]], "ends": [[48.3, 3.0, null], [48.4, 4.0, null]],
241241
"transportMode": "BIKE",
242-
"bikeDetails": {"profile": "MEDIAN", "averageSpeed": 12, "bikeType": "TRADITIONAL"}}'''
242+
"bikeDetails": {"profile": "MEDIAN", "averageSpeed": 12, "bikeType": "TRADITIONAL", "eBike": false}}'''
243+
)
244+
245+
data = Geovelo._make_request_arguments_isochrone(origins, destinations, use_ebike=True)
246+
assert ujson.loads(ujson.dumps(data)) == ujson.loads(
247+
'''{
248+
"starts": [[48.2, 2.0, null]], "ends": [[48.3, 3.0, null], [48.4, 4.0, null]],
249+
"transportMode": "BIKE",
250+
"bikeDetails": {"profile": "MEDIAN", "averageSpeed": 12, "bikeType": "TRADITIONAL", "eBike": true}}'''
243251
)
244252

245253

0 commit comments

Comments
 (0)