@@ -683,6 +683,28 @@ def test_display_informations_in_routes_schedule(self):
683
683
assert display_information_route ['name' ] == 'line:A'
684
684
assert display_information_route ['code' ] == 'A'
685
685
686
+ def test_display_informations_in_stop_schedule (self ):
687
+ """
688
+ verify some attributs in display_informations of a stop_schedule
689
+ """
690
+ response = self .query_region (
691
+ "stop_areas/stop1/stop_schedules?from_datetime=20120615T080000&disable_geojson=true"
692
+ )
693
+ schedules = get_not_null (response , 'stop_schedules' )
694
+ assert len (schedules ) == 1 , "there should be only one elt"
695
+ schedule = schedules [0 ]
696
+ is_valid_stop_schedule (response ["stop_schedules" ], self .tester , only_time = False )
697
+
698
+ display_information_route = get_not_null (schedule , 'display_informations' )
699
+ assert display_information_route ['direction' ] == 'stop2'
700
+ assert display_information_route ['label' ] == 'A'
701
+ assert display_information_route ['color' ] == '289728'
702
+ assert display_information_route ['text_color' ] == 'FFD700'
703
+ assert display_information_route ['name' ] == 'line:A'
704
+ assert display_information_route ['code' ] == 'A'
705
+ assert display_information_route ['headsign' ] == 'week'
706
+ assert display_information_route ['trip_short_name' ] == 'week'
707
+
686
708
def test_terminus_schedules (self ):
687
709
"""
688
710
terminus_schedules for a given date
0 commit comments