pep8 blank lines fixes
flake8 --select W391,E302,E301,E304 autopep8 can't fix W391 even though it claims it can. Fixed using a simple custom script.
This commit is contained in:
parent
be2c8bd789
commit
448c06d125
142 changed files with 249 additions and 25 deletions
|
|
@ -97,6 +97,7 @@ class VirtKeyboard(MappedVirtKeyboard):
|
|||
code += self.get_symbol_code(self.symbols[c])
|
||||
return code
|
||||
|
||||
|
||||
class LoginPage(HTMLPage):
|
||||
is_here ="//form[@id='formulaire-login']"
|
||||
|
||||
|
|
@ -115,12 +116,14 @@ class LoginPage(HTMLPage):
|
|||
form['personneIdentifiee'] = 'N'
|
||||
form.submit()
|
||||
|
||||
|
||||
class IndexPage(LoggedPage, HTMLPage):
|
||||
is_here = "//div[@id='situation']"
|
||||
|
||||
def get_balance(self):
|
||||
return -CleanDecimal('.', replace_dots=True)(self.doc.xpath('//div[@id = "total-sommes-dues"]/p[contains(text(), "sommes dues")]/span[@class = "montant"]')[0])
|
||||
|
||||
|
||||
class OperationsPage(LoggedPage, HTMLPage):
|
||||
is_here = "//div[@id='releve-reserve-credit'] | //div[@id='operations-recentes'] | //select[@id='periode']"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue