incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [3/15] git commit: [#5145] Fixed test failure due to html value case
Date Fri, 26 Oct 2012 20:56:57 GMT
[#5145] Fixed test failure due to html value case

Signed-off-by: Cory Johns <johnsca@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/master
Commit: c19bc21a4eea8d259b404d1566478063ae9cfec8
Parents: d3f88cc
Author: Cory Johns <johnsca@geek.net>
Authored: Wed Oct 24 17:57:32 2012 +0000
Committer: Cory Johns <johnsca@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


Mime
View raw message