• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

修訂568b2ee3a86946f50541bee8aa5b70bd011d74b3 (tree)
時間2011-04-13 03:53:56
作者Jenny Steele <jsteele@geek...>
CommiterJenny Steele

Log Message

Fix for failing tests

Signed-off-by: Jenny Steele <jsteele@geek.net>

Change Summary

差異

--- a/Allura/allura/lib/markdown_extensions.py
+++ b/Allura/allura/lib/markdown_extensions.py
@@ -66,9 +66,9 @@ class FencedCodeProcessor(markdown.preprocessors.Preprocessor):
6666 class ForgeProcessor(object):
6767 alink_pattern = r'(?<!\[)\[([^\]\[]*)\]'
6868 macro_pattern = r'\[(\[([^\]\[]*)\])\]'
69- placeholder_prefix = '\x02jgimwge'
70- placeholder = '%s:%%s:%%.4d\x03' % placeholder_prefix
71- placeholder_re = re.compile('%s:(\\w+):(\\d+)\x03' % placeholder_prefix)
69+ placeholder_prefix = '#jgimwge'
70+ placeholder = '%s:%%s:%%.4d#khjhhj' % placeholder_prefix
71+ placeholder_re = re.compile('%s:(\\w+):(\\d+)#khjhhj' % placeholder_prefix)
7272
7373 def __init__(self, use_wiki = False, markdown=None):
7474 self.markdown = markdown
--- a/ForgeTracker/forgetracker/tests/functional/test_root.py
+++ b/ForgeTracker/forgetracker/tests/functional/test_root.py
@@ -148,7 +148,7 @@ class TestFunctionalController(TestController):
148148 }, upload_files=[upload]).follow()
149149 assert file_name in ticket_editor, ticket_editor.showbrowser()
150150 req = self.app.get('/bugs/1/')
151- file_link = req.html.findAll('form')[1].findAll('a')[6]
151+ file_link = req.html.findAll('form')[1].findAll('a')[-4]
152152 assert_equal(file_link.string, file_name)
153153 self.app.post(str(file_link['href']),{
154154 'delete':'True'
@@ -164,7 +164,7 @@ class TestFunctionalController(TestController):
164164 ticket_editor = self.app.post('/bugs/1/update_ticket',{
165165 'summary':'zzz'
166166 }, upload_files=[upload]).follow()
167- download = self.app.get(str(ticket_editor.html.findAll('form')[1].findAll('a')[7]['href']))
167+ download = self.app.get(str(ticket_editor.html.findAll('form')[1].findAll('a')[-4]['href']))
168168 assert_equal(download.body, file_data)
169169
170170 def test_new_image_attachment_content(self):