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 2012/10/30 18:30:05 UTC

[8/48] git commit: [#5145] Fixed test failure due to html value case

[#5145] Fixed test failure due to html value case

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/c19bc21a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/c19bc21a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/c19bc21a

Branch: refs/heads/cj/5005
Commit: c19bc21a4eea8d259b404d1566478063ae9cfec8
Parents: d3f88cc
Author: Cory Johns <jo...@geek.net>
Authored: Wed Oct 24 17:57:32 2012 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Fri Oct 26 20:32:10 2012 +0000

----------------------------------------------------------------------
 Allura/allura/lib/widgets/forms.py                 |    2 +-
 .../allura/tests/functional/test_neighborhood.py   |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c19bc21a/Allura/allura/lib/widgets/forms.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/forms.py b/Allura/allura/lib/widgets/forms.py
index a952807..b000ea8 100644
--- a/Allura/allura/lib/widgets/forms.py
+++ b/Allura/allura/lib/widgets/forms.py
@@ -270,7 +270,7 @@ class NeighborhoodAddProjectForm(ForgeForm):
                 NeighborhoodProjectTakenValidator()))
         tools = ew.CheckboxSet(name='tools', options=[
             ## Required for Neighborhood functional tests to pass
-            ew.Option(label='Wiki', html_value='Wiki', selected=True)
+            ew.Option(label='Wiki', html_value='wiki', selected=True)
         ])
 
     def resources(self):

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c19bc21a/Allura/allura/tests/functional/test_neighborhood.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_neighborhood.py b/Allura/allura/tests/functional/test_neighborhood.py
index 5257a91..9356fc5 100644
--- a/Allura/allura/tests/functional/test_neighborhood.py
+++ b/Allura/allura/tests/functional/test_neighborhood.py
@@ -492,7 +492,7 @@ class TestNeighborhood(TestController):
                 project_description='',
                 neighborhood='Projects',
                 private_project='on',
-                tools='Wiki'),
+                tools='wiki'),
             antispam=True,
             extra_environ=dict(username='root'),
             status=302)
@@ -664,7 +664,7 @@ class TestNeighborhood(TestController):
         # p/test exists, so try creating adobe/test
         self.app.get('/adobe/test/wiki/', status=404)
         r = self.app.post('/adobe/register',
-                          params=dict(project_unixname='test', project_name='Test again', project_description='', neighborhood='Adobe', tools='Wiki'),
+                          params=dict(project_unixname='test', project_name='Test again', project_description='', neighborhood='Adobe', tools='wiki'),
                           antispam=True,
                           extra_environ=dict(username='root'))
         assert r.status_int == 302, r.html.find('div', {'class':'error'}).string