incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [20/20] git commit: [#6392] ticket:432 Fix test
Date Tue, 24 Sep 2013 17:37:17 GMT
[#6392] ticket:432 Fix test

Can't figure out how to send multiple values to one field in test,
so doing it with two different requests. It works through web, though.


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

Branch: refs/heads/master
Commit: 323d01c06ba65b3613ba9db038cca5fd4ef16135
Parents: 52b7043
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Sep 13 13:42:23 2013 +0300
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Sep 24 17:36:25 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/323d01c0/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 b5a3569..38a7272 100644
--- a/Allura/allura/tests/functional/test_admin.py
+++ b/Allura/allura/tests/functional/test_admin.py
@@ -223,7 +223,9 @@ class TestProjectAdmin(TestController):
         assert '<input type="checkbox" name="user_id" value="%s">test-admin (Spammer)'
% admin._id in r
         assert '<input type="checkbox" name="user_id" value="%s">test-user' % user._id
in r
 
-        self.app.post('/admin/wiki/unblock_user', params={'user_id': [str(user._id), str(admin._id)],
'perm': 'read'})
+        self.app.post('/admin/wiki/unblock_user', params={'user_id': str(user._id), 'perm':
'read'})
+        self.app.post('/admin/wiki/unblock_user', params={'user_id': str(admin._id), 'perm':
'read'})
+        app = M.Project.query.get(shortname='test').app_instance('wiki')
         assert M.ACL.contains(deny_admin, app.acl) is None
         assert M.ACL.contains(deny_user, app.acl) is None
         r = self.app.get('/admin/wiki/permissions')


Mime
View raw message