raising incorrecte password when profil is incomplete
This commit is contained in:
parent
3354667a68
commit
9749f5c7a8
3 changed files with 9 additions and 3 deletions
|
|
@ -22,7 +22,7 @@
|
|||
from .account_history import AccountHistory
|
||||
from .card_history import CardHistory
|
||||
from .accounts_list import AccountsList
|
||||
from .login import LoginPage, UpdateInfoPage
|
||||
from .login import LoginPage, ProfilIncomplete, UpdateInfoPage
|
||||
from .two_authentication import AuthenticationPage
|
||||
from .investment import AccountInvestment, InvestmentDetail
|
||||
|
||||
|
|
@ -31,6 +31,7 @@ class AccountPrelevement(AccountsList):
|
|||
pass
|
||||
|
||||
__all__ = ['LoginPage',
|
||||
'ProfilIncomplete',
|
||||
'AccountsList',
|
||||
'AccountHistory',
|
||||
'CardHistory',
|
||||
|
|
|
|||
|
|
@ -98,6 +98,10 @@ class LoginPage(Page):
|
|||
|
||||
self.browser.location(form.attrib['action'], urllib.urlencode(args), no_login=True)
|
||||
|
||||
class ProfilIncomplete(Page):
|
||||
def on_loaded(self):
|
||||
raise BrowserIncorrectPassword()
|
||||
|
||||
|
||||
class UpdateInfoPage(Page):
|
||||
def on_loaded(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue