[seloger] adapt to browser2
This commit is contained in:
parent
04220ca44d
commit
8ac7bbb434
4 changed files with 142 additions and 149 deletions
|
|
@ -17,7 +17,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import itertools
|
||||
from weboob.capabilities.housing import Query
|
||||
from weboob.tools.test import BackendTest
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ class SeLogerTest(BackendTest):
|
|||
city.backend = self.backend.name
|
||||
query.cities.append(city)
|
||||
|
||||
results = list(self.backend.search_housings(query))
|
||||
results = list(itertools.islice(self.backend.search_housings(query), 0, 20))
|
||||
self.assertTrue(len(results) > 0)
|
||||
|
||||
self.backend.fillobj(results[0], 'phone')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue