allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [05/23] allura git commit: [#7884] ticket:805 Fix test
Date Thu, 02 Jul 2015 15:09:20 GMT
[#7884] ticket:805 Fix test


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

Branch: refs/heads/hs/7894
Commit: cddde5627f636b0b6b6322dfefad49e060703701
Parents: cbd25fb
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Wed Jun 17 17:37:36 2015 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon Jun 29 18:04:52 2015 +0000

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_admin.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/cddde562/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 bd7f373..28931c0 100644
--- a/Allura/allura/tests/functional/test_admin.py
+++ b/Allura/allura/tests/functional/test_admin.py
@@ -170,8 +170,10 @@ class TestProjectAdmin(TestController):
                 'features-1.feature': '  ',
                 'features-2.feature': ' Two '})
         r = self.app.get('/admin/overview')
-        features = r.html.find('fieldset').findAll('input', {'type': 'text'})
-        assert_equals(len(features), 2+1)  # two features + extra empty input
+        features = r.html.find('div', {'id': 'features'})
+        features = features.findAll('input', {'type': 'text'})
+        # two features + extra empty input + stub hidden input for js
+        assert_equals(len(features), 2+1+1)
         assert_equals(features[0]['value'], u'One')
         assert_equals(features[1]['value'], u'Two')
         proj = M.Project.query.get(shortname='test')


Mime
View raw message