allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [2/6] git commit: [#5120] ticket:297 Fix failing tests due to new branch urls
Date Wed, 03 Apr 2013 22:20:01 GMT
[#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 <jetmind2@gmail.com>
Authored: Thu Mar 21 10:59:07 2013 +0000
Committer: Cory Johns <cjohns@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):


Mime
View raw message