Commit 6661ec3b authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[sgpe] some accounts are not able to do transfer

there are no obvious reason so erase all assumptions

Closes: 18986@sibi
parent 1a29f2a9
...@@ -29,7 +29,7 @@ from weboob.browser.filters.standard import CleanText, CleanDecimal ...@@ -29,7 +29,7 @@ from weboob.browser.filters.standard import CleanText, CleanDecimal
from weboob.browser.filters.html import Attr from weboob.browser.filters.html import Attr
from weboob.browser.filters.json import Dict from weboob.browser.filters.json import Dict
from weboob.browser.filters.standard import Date, Eval from weboob.browser.filters.standard import Date, Eval
from weboob.capabilities.bank import Recipient, Transfer, Account from weboob.capabilities.bank import Recipient, Transfer
from .pages import LoginPage from .pages import LoginPage
...@@ -102,14 +102,8 @@ class EasyTransferPage(LoggedPage, HTMLPage): ...@@ -102,14 +102,8 @@ class EasyTransferPage(LoggedPage, HTMLPage):
origin_account._underproduct_code = json_data['codeSousProduit'] origin_account._underproduct_code = json_data['codeSousProduit']
break break
else: else:
assumptions = ( # some accounts are not able to do transfer
not origin_account.balance, self.logger.warning('Account %s not found on transfer page', origin_account.label)
not origin_account.iban,
origin_account.currency != 'EUR',
origin_account.type == Account.TYPE_PEA,
)
if not any(assumptions):
assert False, 'Account %s not found on transfer page' % (origin_account.label)
def iter_internal_recipients(self): def iter_internal_recipients(self):
if self.doc.xpath('//ul[@id="idCmptToInterne"]'): if self.doc.xpath('//ul[@id="idCmptToInterne"]'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment