fix parsing of departures on some stations

- fix when there are several tables (js pagination?)
- fix when there are hints on bottom of tables
This commit is contained in:
Romain Bignon 2014-08-30 17:14:35 +02:00
commit 449ea03f68
4 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright(C) 2010-2011 Romain Bignon
# Copyright(C) 2010-2014 Romain Bignon
#
# This file is part of weboob.
#
@ -31,7 +31,7 @@ class TransilienTest(BackendTest):
self.assertTrue(len(stations) > 0)
def test_departures(self):
stations = list(self.backend.iter_station_search('aul'))
stations = list(self.backend.iter_station_search('paris'))
self.assertTrue(len(stations) > 0)
list(self.backend.iter_station_departures(stations[0].id))