allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [07/10] allura git commit: [#8024] ticket:884 fix test
Date Fri, 08 Jan 2016 18:02:37 GMT
[#8024] ticket:884 fix test


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

Branch: refs/heads/master
Commit: 38988bb35a32f9039899c3e531477ac8b6260670
Parents: fffcb88
Author: Denis Kotov <deniskkotov@gmail.com>
Authored: Thu Jan 7 22:05:59 2016 +0200
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Fri Jan 8 12:18:12 2016 -0500

----------------------------------------------------------------------
 Allura/allura/tests/functional/test_site_admin.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/38988bb3/Allura/allura/tests/functional/test_site_admin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/functional/test_site_admin.py b/Allura/allura/tests/functional/test_site_admin.py
index 41aa8d3..b55dcbc 100644
--- a/Allura/allura/tests/functional/test_site_admin.py
+++ b/Allura/allura/tests/functional/test_site_admin.py
@@ -258,8 +258,7 @@ class TestSiteAdmin(TestController):
         r = self.app.get('/nf/admin/site_notifications/{}/edit'.format(note._id))
 
         assert r
-
-        assert (u'selected', u'selected') in r.html.find('form').findAll('option')[1].attrs
+        assert 'checked' in r.form['active'].attrs
         assert r.form['impressions'].value == '0'
         assert r.form['content'].value == 'test1'
         assert r.form['user_role'].value == 'test2'


Mime
View raw message