Commit 85761a51 authored by Romain Pesche's avatar Romain Pesche Committed by Vincent A

[onlinenet] flake8 code linting

parent 4c13018e
......@@ -37,8 +37,10 @@ class OnlinenetModule(Module, CapDocument):
EMAIL = 'elambert@budget-insight.com'
LICENSE = 'LGPLv3+'
VERSION = '1.6'
CONFIG = BackendConfig(Value('login', label='Identifiant'),
ValueBackendPassword('password', label='Mot de passe'))
CONFIG = BackendConfig(
Value('login', label='Identifiant'),
ValueBackendPassword('password', label='Mot de passe'),
)
BROWSER = OnlinenetBrowser
......
......@@ -43,7 +43,11 @@ class ProfilPage(LoggedPage, HTMLPage):
class item(ItemElement):
klass = Subscription
obj_subscriber = Format('%s %s', CleanText('//label[@for="form_firstname"]/../following-sibling::div'), CleanText('//label[@for="form_firstname"]/../following-sibling::div'))
obj_subscriber = Format(
'%s %s',
CleanText('//label[@for="form_firstname"]/../following-sibling::div'),
CleanText('//label[@for="form_firstname"]/../following-sibling::div')
)
obj_id = Env('username')
obj_label = obj_id
......@@ -79,7 +83,6 @@ class DocumentsPage(LoggedPage, HTMLPage):
def parse(self, el):
self.env['username'] = self.page.browser.username
@method
class get_documents(ListElement):
item_xpath = '//a[contains(@href, ".pdf")]'
......
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