@@ -409,18 +409,18 @@ def test_address_with_invalid_within_to_address_journeys(self):
409
409
template_journey_query .format (place_from = from_addr_uri , place_to = to_addr_uri )
410
410
)
411
411
journeys = [journey for journey in response ['journeys' ]]
412
- assert len (journeys ) == 2
412
+ assert len (journeys ) == 1
413
413
first_journey = response ['journeys' ][0 ]
414
- assert len (first_journey ["sections" ]) == 3
414
+ assert len (first_journey ["sections" ]) == 1
415
415
physical_mode_id = next (
416
416
(
417
417
link ["id" ]
418
- for link in first_journey ["sections" ][1 ]["links" ]
418
+ for link in first_journey ["sections" ][0 ]["links" ]
419
419
if link ["type" ] == 'physical_mode'
420
420
),
421
421
None ,
422
422
)
423
- assert physical_mode_id
423
+ assert not physical_mode_id
424
424
425
425
def test_address_to_address_journeys (self ):
426
426
# forbidden_uris not used : physical_mode:0x0
@@ -451,18 +451,18 @@ def test_address_to_address_journeys(self):
451
451
template_journey_query .format (place_from = from_addr_uri , place_to = to_addr_uri )
452
452
)
453
453
journeys = [journey for journey in response ['journeys' ]]
454
- assert len (journeys ) == 2
454
+ assert len (journeys ) == 1
455
455
first_journey = response ['journeys' ][0 ]
456
- assert len (first_journey ["sections" ]) == 3
456
+ assert len (first_journey ["sections" ]) == 1
457
457
physical_mode_id = next (
458
458
(
459
459
link ["id" ]
460
- for link in first_journey ["sections" ][1 ]["links" ]
460
+ for link in first_journey ["sections" ][0 ]["links" ]
461
461
if link ["type" ] == 'physical_mode'
462
462
),
463
463
None ,
464
464
)
465
- assert physical_mode_id
465
+ assert not physical_mode_id
466
466
467
467
def test_address_to_olympic_poi_journeys (self ):
468
468
# forbidden_uris used : physical_mode:0x0
@@ -512,18 +512,18 @@ def test_address_to_not_olympic_poi_journeys(self):
512
512
template_journey_query .format (place_from = from_addr_uri , place_to = to_poi_uri )
513
513
)
514
514
journeys = [journey for journey in response ['journeys' ]]
515
- assert len (journeys ) == 2
515
+ assert len (journeys ) == 1
516
516
first_journey = response ['journeys' ][0 ]
517
- assert len (first_journey ["sections" ]) == 3
517
+ assert len (first_journey ["sections" ]) == 1
518
518
physical_mode_id = next (
519
519
(
520
520
link ["id" ]
521
- for link in first_journey ["sections" ][1 ]["links" ]
521
+ for link in first_journey ["sections" ][0 ]["links" ]
522
522
if link ["type" ] == 'physical_mode'
523
523
),
524
524
None ,
525
525
)
526
- assert physical_mode_id
526
+ assert not physical_mode_id
527
527
528
528
def test_olympic_poi_to_address_journeys (self ):
529
529
# forbidden_uris used : physical_mode:0x0
0 commit comments