Пример #1
0
 def test_transfer_fetcher(self):
     busway_transfer_accessor.reset()
     busway_transfer_fetcher.start()
     routes = busway_transfer_accessor.get_all_busway_transfers()
     self.assertIsNotNone(routes)
     self.assertTrue(len(routes) > 0)
     busway_transfer_fetcher.stop()
Пример #2
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')