allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject allura git commit: Fix tests failing due to voting enabled by default
Date Tue, 15 Dec 2015 15:01:30 GMT
Repository: allura
Updated Branches:
  refs/heads/master a54dbbf7a -> 5896c9081


Fix tests failing due to voting enabled by default


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/5896c908
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/5896c908
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/5896c908

Branch: refs/heads/master
Commit: 5896c9081c8aec3380fa877c5c60846261927392
Parents: a54dbbf
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Dec 15 14:26:45 2015 +0200
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Tue Dec 15 14:26:45 2015 +0200

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_admin.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/5896c908/Allura/allura/tests/functional/test_admin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_admin.py b/Allura/allura/tests/functional/test_admin.py
index 16590d7..dea4cba 100644
--- a/Allura/allura/tests/functional/test_admin.py
+++ b/Allura/allura/tests/functional/test_admin.py
@@ -385,7 +385,9 @@ class TestProjectAdmin(TestController):
         opts = ['EnableVoting']
         with mock.patch.object(ForgeTrackerApp, 'config_on_install', new=opts):
             r = self.app.get('/admin/options_on_install?tool_name=tickets')
-            assert_in(u'<input id="EnableVoting" name="EnableVoting" type="checkbox">',
r)
+            inp_opts = {'type': 'checkbox', 'id': 'EnableVoting', 'name': 'EnableVoting'}
+            inp = r.html.findAll('input', inp_opts)
+            assert_equals(len(inp), 1)
 
     def test_grouping_threshold(self):
         r = self.app.get('/admin/tools')


Mime
View raw message