Easy spacing fixes, trailing stuff
Remove useless trailing \ Remove trailing spaces Add missing empty lines autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 . Diff quickly checked.
This commit is contained in:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -63,7 +63,7 @@ class LCLBrowser(BaseBrowser):
|
|||
assert self.agency.isdigit()
|
||||
|
||||
if not self.is_on_page(LoginPage):
|
||||
self.location('%s://%s/outil/UAUT/Authentication/authenticate' \
|
||||
self.location('%s://%s/outil/UAUT/Authentication/authenticate'
|
||||
% (self.PROTOCOL, self.DOMAIN),
|
||||
no_login=True)
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ class LCLBrowser(BaseBrowser):
|
|||
not self.is_logged() or \
|
||||
(self.is_on_page(LoginPage) and self.page.is_error()) :
|
||||
raise BrowserIncorrectPassword("invalid login/password.\nIf you did not change anything, be sure to check for password renewal request\non the original web site.\nAutomatic renewal will be implemented later.")
|
||||
self.location('%s://%s/outil/UWSP/Synthese' \
|
||||
self.location('%s://%s/outil/UWSP/Synthese'
|
||||
% (self.PROTOCOL, self.DOMAIN),
|
||||
no_login=True)
|
||||
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@ class ContractsPage(BasePage):
|
|||
self.browser.select_form(predicate=lambda form: form.attrs.get('id', '') == 'mainForm')
|
||||
self.browser.submit()
|
||||
|
||||
|
||||
class AccountsPage(BasePage):
|
||||
def on_loaded(self):
|
||||
warn = self.document.xpath('//div[@id="attTxt"]')
|
||||
|
|
@ -222,6 +223,7 @@ class Transaction(FrenchTransaction):
|
|||
(re.compile('^(?P<category>REM CHQ) (?P<text>.*)'), FrenchTransaction.TYPE_DEPOSIT),
|
||||
]
|
||||
|
||||
|
||||
class AccountHistoryPage(BasePage):
|
||||
def get_table(self):
|
||||
tables=self.document.findall("//table[@class='tagTab pyjama']")
|
||||
|
|
@ -303,6 +305,7 @@ class AccountHistoryPage(BasePage):
|
|||
operations.append(operation)
|
||||
return operations
|
||||
|
||||
|
||||
class CBHistoryPage(AccountHistoryPage):
|
||||
def get_table(self):
|
||||
# there is only one table on the page
|
||||
|
|
@ -320,6 +323,7 @@ class CBHistoryPage(AccountHistoryPage):
|
|||
tr.type = tr.TYPE_CARD
|
||||
yield tr
|
||||
|
||||
|
||||
class CBListPage(CBHistoryPage):
|
||||
def get_cards(self):
|
||||
cards = []
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
from weboob.tools.test import BackendTest
|
||||
|
||||
|
||||
class LCLtTest(BackendTest):
|
||||
BACKEND = 'lcl'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue