Ejemplo n.º 1
0
def start():
    # warming up
    __logger.info('System is warming up')
    bus_estimation_accessor.start()
    busway_info_fetcher.start()
    train_info_fetcher.start()
    walk_info_fetcher.start()
    busway_transfer_fetcher.start()
    busway_track_fetcher.start()
    autocomplete_service.start()
    __logger.info('All components have been started')
Ejemplo n.º 2
0
 def test_train_fetcher(self):
     train_route_accessor.reset()
     train_info_fetcher.start()
     routes = train_route_accessor.get_all_train_routes()
     self.assertIsNotNone(routes)
     self.assertTrue(len(routes) > 0)