paste* backends: Do not fill the paste after post
It's the application job to call fill_paste(). We only need to get the id.
This commit is contained in:
parent
c2abb12985
commit
667b8267db
4 changed files with 2 additions and 2 deletions
|
|
@ -58,4 +58,3 @@ class PastealaconBrowser(BaseBrowser):
|
|||
if self.is_on_page(CaptchaPage):
|
||||
raise BrowserUnavailable("Detected as spam and unable to handle the captcha")
|
||||
paste.id = self.page.get_id()
|
||||
self.fill_paste(paste)
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ class PastealaconTest(BackendTest):
|
|||
p = PastealaconPaste(None, title='ouiboube', contents='Weboob Test')
|
||||
self.backend.post_paste(p)
|
||||
assert p.id
|
||||
self.backend.fill_paste(p, ['title'])
|
||||
assert p.title == 'ouiboube'
|
||||
assert p.id in p.page_url
|
||||
|
||||
|
|
|
|||
|
|
@ -49,4 +49,3 @@ class PastebinBrowser(BaseBrowser):
|
|||
self.home()
|
||||
self.page.post(paste)
|
||||
paste.id = self.page.get_id()
|
||||
self.fill_paste(paste)
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ class PastebinTest(BackendTest):
|
|||
p = PastebinPaste(None, title='ouiboube', contents='Weboob Test')
|
||||
self.backend.post_paste(p)
|
||||
assert p.id
|
||||
self.backend.fill_paste(p, ['title'])
|
||||
assert p.title == 'ouiboube'
|
||||
assert p.id in p.page_url
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue