add AssurancePage on which we don't support get_history : fix 11367
This commit is contained in:
parent
293da472e3
commit
969b6b8abf
2 changed files with 6 additions and 2 deletions
|
|
@ -21,7 +21,7 @@
|
||||||
from weboob.deprecated.browser import Browser, BrowserIncorrectPassword
|
from weboob.deprecated.browser import Browser, BrowserIncorrectPassword
|
||||||
|
|
||||||
from .pages import LoginPage, Login2Page, IndexPage, AccountsPage, TransactionsPage, \
|
from .pages import LoginPage, Login2Page, IndexPage, AccountsPage, TransactionsPage, \
|
||||||
CardPage, ValuationPage, LoanPage, MarketPage
|
CardPage, ValuationPage, LoanPage, MarketPage, AssurancePage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['Barclays']
|
__all__ = ['Barclays']
|
||||||
|
|
@ -39,6 +39,7 @@ class Barclays(Browser):
|
||||||
'https://.*.barclays.fr/barclaysnetV2/valuationViewBank.do.*': ValuationPage,
|
'https://.*.barclays.fr/barclaysnetV2/valuationViewBank.do.*': ValuationPage,
|
||||||
'https://.*.barclays.fr/barclaysnetV2/pret.do.*': LoanPage,
|
'https://.*.barclays.fr/barclaysnetV2/pret.do.*': LoanPage,
|
||||||
'https://.*.barclays.fr/barclaysnetV2/titre.do.*': MarketPage,
|
'https://.*.barclays.fr/barclaysnetV2/titre.do.*': MarketPage,
|
||||||
|
'https://.*.barclays.fr/barclaysnetV2/assurance.do.*': AssurancePage,
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, secret, *args, **kwargs):
|
def __init__(self, secret, *args, **kwargs):
|
||||||
|
|
@ -102,7 +103,7 @@ class Barclays(Browser):
|
||||||
|
|
||||||
self.location(account._link)
|
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():
|
for tr in self.page.get_history():
|
||||||
yield tr
|
yield tr
|
||||||
|
|
|
||||||
|
|
@ -241,3 +241,6 @@ class LoanPage(HistoryBasePage):
|
||||||
|
|
||||||
class MarketPage(HistoryBasePage):
|
class MarketPage(HistoryBasePage):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class AssurancePage(HistoryBasePage):
|
||||||
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue