• 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

修訂0c386898891109c63da886e560e7cbcf13437c6c (tree)
時間2012-05-15 00:09:11
作者Cory Johns <johnsca@geek...>
CommiterYaroslav Luzin

Log Message

[#4115] Fixed failing test

Signed-off-by: Cory Johns <johnsca@geek.net>

Change Summary

差異

--- a/ForgeGit/forgegit/tests/functional/test_controllers.py
+++ b/ForgeGit/forgegit/tests/functional/test_controllers.py
@@ -1,4 +1,5 @@
11 import json
2+import re
23
34 import tg
45 import pkg_resources
@@ -174,5 +175,5 @@ class TestRootController(TestController):
174175 ci = self._get_ci()
175176 resp = self.app.get(ci + 'tree/README?force=True')
176177 content = str(resp.html.find('div',{'class':'clip grid-19'}))
177- assert '<pre>This is readme' in content, content
178+ assert re.search(r'<pre>.*This is readme', content), content
178179 assert '</pre>' in content, content