fix docstrings and add weboob.browser.* in nosetests
This commit is contained in:
parent
c281d7a255
commit
8508f951f5
3 changed files with 6 additions and 2 deletions
|
|
@ -8,6 +8,8 @@ tests = weboob.tools.capabilities.bank.transactions,
|
|||
weboob.tools.application.formatters.json,
|
||||
weboob.tools.application.formatters.table,
|
||||
weboob.tools.path,
|
||||
weboob.browser.browsers,
|
||||
weboob.browser.pages,
|
||||
weboob.browser.filters.standard
|
||||
|
||||
[isort]
|
||||
|
|
|
|||
|
|
@ -649,7 +649,8 @@ class PagesBrowser(DomainBrowser):
|
|||
... list = URL('/~rom1/projects/weboob/list-(?P<pagenum>\d+).html', Page)
|
||||
...
|
||||
>>> b = Browser()
|
||||
>>> b.list.go(pagenum=1)
|
||||
>>> b.list.go(pagenum=1) # doctest: +ELLIPSIS
|
||||
<weboob.browser.browsers.Page object at 0x...>
|
||||
>>> list(b.pagination(lambda: b.page.iter_values()))
|
||||
['One', 'Two', 'Three', 'Four']
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -54,7 +54,8 @@ def pagination(func):
|
|||
... list = URL('/~rom1/projects/weboob/list-(?P<pagenum>\d+).html', Page)
|
||||
...
|
||||
>>> b = Browser()
|
||||
>>> b.list.go(pagenum=1)
|
||||
>>> b.list.go(pagenum=1) # doctest: +ELLIPSIS
|
||||
<weboob.browser.pages.Page object at 0x...>
|
||||
>>> list(b.page.iter_values())
|
||||
['One', 'Two', 'Three', 'Four']
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue