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/24 19:57:51 UTC

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

Updated Branches:
  refs/heads/cj/5145 48ec279da -> bd66a8c71


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

Branch: refs/heads/cj/5145
Commit: bd66a8c71ec47b78e3ef3fc02d8a3730fb6dd096
Parents: 48ec279
Author: Cory Johns <jo...@geek.net>
Authored: Wed Oct 24 17:57:32 2012 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Wed Oct 24 17:57:32 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/bd66a8c7/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/bd66a8c7/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