From 969b6b8abfc031b73dba3a24e1e663b10245bc71 Mon Sep 17 00:00:00 2001 From: Baptiste Delpey Date: Mon, 15 Dec 2014 14:25:48 +0100 Subject: [PATCH] add AssurancePage on which we don't support get_history : fix 11367 --- modules/barclays/browser.py | 5 +++-- modules/barclays/pages.py | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/barclays/browser.py b/modules/barclays/browser.py index 56dd7bc0..a7775698 100644 --- a/modules/barclays/browser.py +++ b/modules/barclays/browser.py @@ -21,7 +21,7 @@ from weboob.deprecated.browser import Browser, BrowserIncorrectPassword from .pages import LoginPage, Login2Page, IndexPage, AccountsPage, TransactionsPage, \ - CardPage, ValuationPage, LoanPage, MarketPage + CardPage, ValuationPage, LoanPage, MarketPage, AssurancePage __all__ = ['Barclays'] @@ -39,6 +39,7 @@ class Barclays(Browser): 'https://.*.barclays.fr/barclaysnetV2/valuationViewBank.do.*': ValuationPage, 'https://.*.barclays.fr/barclaysnetV2/pret.do.*': LoanPage, 'https://.*.barclays.fr/barclaysnetV2/titre.do.*': MarketPage, + 'https://.*.barclays.fr/barclaysnetV2/assurance.do.*': AssurancePage, } def __init__(self, secret, *args, **kwargs): @@ -102,7 +103,7 @@ class Barclays(Browser): self.location(account._link) - assert self.is_on_page((TransactionsPage, ValuationPage, LoanPage, MarketPage)) + assert self.is_on_page((TransactionsPage, ValuationPage, LoanPage, MarketPage, AssurancePage)) for tr in self.page.get_history(): yield tr diff --git a/modules/barclays/pages.py b/modules/barclays/pages.py index 4e65c5f7..b93af023 100644 --- a/modules/barclays/pages.py +++ b/modules/barclays/pages.py @@ -241,3 +241,6 @@ class LoanPage(HistoryBasePage): class MarketPage(HistoryBasePage): pass + +class AssurancePage(HistoryBasePage): + pass