diff --git a/modules/amelipro/browser.py b/modules/amelipro/browser.py index a612db196a8150cec20b0e3eb56ea2869d584a6d..8b695f771ccc3dcf70ab6db8b56be0fced301149 100644 --- a/modules/amelipro/browser.py +++ b/modules/amelipro/browser.py @@ -26,6 +26,7 @@ __all__ = ['AmeliProBrowser'] + class AmeliProBrowser(LoginBrowser): BASEURL = 'https://espacepro.ameli.fr' @@ -63,7 +64,6 @@ def get_subscription_list(self): @need_login def get_subscription(self, id): - assert isinstance(id, basestring) return self.get_subscription_list() @need_login @@ -101,7 +101,6 @@ def iter_documents(self): @need_login def get_document(self, id): - assert isinstance(id, basestring) for b in self.iter_documents(): if id == b.id: return b diff --git a/modules/amelipro/pages.py b/modules/amelipro/pages.py index 39220229823153bac356cb493537188d6a4dd4ba..1fffedc028b551041b285c66e767d0fc67e24716 100644 --- a/modules/amelipro/pages.py +++ b/modules/amelipro/pages.py @@ -21,8 +21,10 @@ from datetime import datetime import re from decimal import Decimal + from weboob.browser.pages import HTMLPage from weboob.capabilities.bill import DocumentTypes, Subscription, Detail, Bill +from weboob.tools.compat import unicode # Ugly array to avoid the use of french locale @@ -36,14 +38,17 @@ def login(self, login, password): form['vp_connexion_portlet_1password'] = password.encode('utf8') form.submit() + class HomePage(HTMLPage): def on_loaded(self): pass + class SearchPage(HTMLPage): def on_loaded(self): pass + class AccountPage(HTMLPage): def iter_subscription_list(self): ident = self.doc.xpath('//div[@id="identification"]')[0] diff --git a/tools/py3-compatible.modules b/tools/py3-compatible.modules index 8fa88cee942a2288c20553d5227be61bbd52a164..47421108eed562f82e56ce52c579ca676536d786 100644 --- a/tools/py3-compatible.modules +++ b/tools/py3-compatible.modules @@ -9,6 +9,7 @@ agendadulibre allrecipes amazon ameli +amelipro americanexpress anticaptcha amundi