You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/04/04 00:20:01 UTC
[2/6] git commit: [#5120] ticket:297 Fix failing tests due to new
branch urls
[#5120] ticket:297 Fix failing tests due to new branch urls
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/55aba264
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/55aba264
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/55aba264
Branch: refs/heads/master
Commit: 55aba2645856468d37dc0d5d88864276a32be2bb
Parents: 84e439c
Author: Igor Bondarenko <je...@gmail.com>
Authored: Thu Mar 21 10:59:07 2013 +0000
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Wed Apr 3 22:16:57 2013 +0000
----------------------------------------------------------------------
.../forgegit/tests/functional/test_controllers.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/55aba264/ForgeGit/forgegit/tests/functional/test_controllers.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/tests/functional/test_controllers.py b/ForgeGit/forgegit/tests/functional/test_controllers.py
index 5be4d01..2245b5b 100644
--- a/ForgeGit/forgegit/tests/functional/test_controllers.py
+++ b/ForgeGit/forgegit/tests/functional/test_controllers.py
@@ -127,7 +127,10 @@ class TestRootController(_TestCase):
resp = r.follow()
for tag in resp.html.findAll('a'):
if tag['href'].startswith('/p/test/src-git/ci/'):
- return tag['href']
+ href = tag['href']
+ if href.endswith('tree/'):
+ href = href[:-5]
+ return href
return None
def test_commit(self):