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/01/25 19:13:08 UTC
git commit: [#5683] Fixed failing test due to index page change
Updated Branches:
refs/heads/cj/5683 b47c46b1d -> 51277b9ff
[#5683] Fixed failing test due to index page change
Signed-off-by: Cory Johns <jo...@geek.net>
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/51277b9f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/51277b9f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/51277b9f
Branch: refs/heads/cj/5683
Commit: 51277b9ff076b07c9cb549440ce188dc11e2e7b4
Parents: b47c46b
Author: Cory Johns <jo...@geek.net>
Authored: Fri Jan 25 18:12:54 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Fri Jan 25 18:12:54 2013 +0000
----------------------------------------------------------------------
Allura/allura/templates/neighborhood_list.html | 2 +-
Allura/allura/tests/functional/test_root.py | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/51277b9f/Allura/allura/templates/neighborhood_list.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/neighborhood_list.html b/Allura/allura/templates/neighborhood_list.html
index 3a25ab0..8ff67f3 100644
--- a/Allura/allura/templates/neighborhood_list.html
+++ b/Allura/allura/templates/neighborhood_list.html
@@ -22,7 +22,7 @@
</thead>
<tbody>
{% for nbhd in neighborhoods %}
- <tr><td><a href="{{nbhd.url()}}">{{nbhd.name}}</a></td></tr>
+ <tr><td class="nbhd"><a href="{{nbhd.url()}}">{{nbhd.name}}</a></td></tr>
{% else %}
<tr><td class="no-nbhds">No neighborhoods found</td></tr>
{% endfor %}
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/51277b9f/Allura/allura/tests/functional/test_root.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_root.py b/Allura/allura/tests/functional/test_root.py
index 995be0d..3f4e7dd 100644
--- a/Allura/allura/tests/functional/test_root.py
+++ b/Allura/allura/tests/functional/test_root.py
@@ -32,9 +32,9 @@ class TestRootController(TestController):
def test_index(self):
response = self.app.get('/')
- assert_equal(response.html.find('h2',{'class':'dark title'}).contents[0].strip(), 'All Projects')
- projects = response.html.findAll('div',{'class':'border card'})
- assert projects[0].find('a').get('href') == '/adobe/adobe-1/'
+ assert_equal(response.html.find('h2',{'class':'dark title'}).contents[0].strip(), 'All Neighborhoods')
+ nbhds = response.html.findAll('td',{'class':'nbhd'})
+ assert nbhds[0].find('a').get('href') == '/adobe/'
cat_links = response.html.find('div',{'id':'sidebar'}).findAll('li')
assert len(cat_links) == 4
assert cat_links[0].find('a').get('href') == '/browse/clustering'