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:
Laurent Bachelier 2011-04-14 22:59:02 +02:00
commit 667b8267db
4 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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

View file

@ -49,4 +49,3 @@ class PastebinBrowser(BaseBrowser):
self.home()
self.page.post(paste)
paste.id = self.page.get_id()
self.fill_paste(paste)

View file

@ -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