• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

allura


Commit MetaInfo

修订版b52c6ec7b7cd627dc77c15b2dd3e5ab2a651629e (tree)
时间2012-05-10 04:01:29
作者Cory Johns <johnsca@geek...>
CommiterYaroslav Luzin

Log Message

[#4115] Fixed failing test

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

更改概述

差异

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