|
a/Allura/allura/tests/functional/test_discuss.py |
|
b/Allura/allura/tests/functional/test_discuss.py |
|
... |
|
... |
93 |
permalinks = [post.find('form')['action'].encode('utf-8') for post in r.html.findAll('div',{'class':'edit_post_form reply'})]
|
93 |
permalinks = [post.find('form')['action'].encode('utf-8') for post in r.html.findAll('div',{'class':'edit_post_form reply'})]
|
94 |
self.app.post(permalinks[1]+'flag')
|
94 |
self.app.post(permalinks[1]+'flag')
|
95 |
self.app.post(permalinks[1]+'moderate', params=dict(delete='delete'))
|
95 |
self.app.post(permalinks[1]+'moderate', params=dict(delete='delete'))
|
96 |
self.app.post(permalinks[0]+'moderate', params=dict(spam='spam'))
|
96 |
self.app.post(permalinks[0]+'moderate', params=dict(spam='spam'))
|
97 |
|
97 |
|
|
|
98 |
def test_post_paging(self):
|
|
|
99 |
home = self.app.get('/wiki/_discuss/')
|
|
|
100 |
thread_link = [ a for a in home.html.findAll('a')
|
|
|
101 |
if 'thread' in a['href'] ][0]['href']
|
|
|
102 |
# just make sure it doesn't 500
|
|
|
103 |
r = self.app.get('%s?limit=50&page=0' % thread_link)
|
|
|
104 |
|
98 |
def test_edit_post(self):
|
105 |
def test_edit_post(self):
|
99 |
r = self._make_post('This is a post')
|
106 |
r = self._make_post('This is a post')
|
100 |
thread_url = r.request.url
|
107 |
thread_url = r.request.url
|
101 |
reply_form = r.html.find('div',{'class':'edit_post_form reply'}).find('form')
|
108 |
reply_form = r.html.find('div',{'class':'edit_post_form reply'}).find('form')
|
102 |
post_link = str(reply_form['action'])
|
109 |
post_link = str(reply_form['action'])
|