You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/09/22 12:28:06 UTC

[25/31] git commit: [#7657] ticket:651 Remove functional tests for enable/disable user

[#7657] ticket:651 Remove functional tests for enable/disable user

Other tests just hang at some point if these tests are present.
Don't want to spend too much time figuring out what causing this.
Anyway, we have unit tests for provider's enable/disable_user.


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

Branch: refs/heads/je/42cc_7657b
Commit: 35f19ea7c3011d718a2687568bc73c1a854ed27f
Parents: 7913881
Author: Igor Bondarenko <je...@gmail.com>
Authored: Wed Sep 17 11:57:24 2014 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Mon Sep 22 11:14:57 2014 +0300

----------------------------------------------------------------------
 .../allura/tests/functional/test_site_admin.py  | 25 --------------------
 1 file changed, 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/35f19ea7/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 5868621..a760dc0 100644
--- a/Allura/allura/tests/functional/test_site_admin.py
+++ b/Allura/allura/tests/functional/test_site_admin.py
@@ -389,31 +389,6 @@ class TestUserDetails(TestController):
         r = self.app.get('/nf/admin/user/test-user')
         assert_in(u'Comment by test-admin: I was hêre!', r)
 
-    #def test_disable_user(self):
-        #assert_equal(M.User.by_username('test-user-3').disabled, False)
-        #r = self.app.get('/nf/admin/user/test-user-3')
-        #form = r.forms[0]
-        #assert_equal(form['username'].value, 'test-user-3')
-        #assert_equal(form['status'].value, 'enable')
-        #form['status'].value = 'disable'
-        #r = form.submit()
-        #assert_in(u'User disabled', self.webflash(r))
-        #assert_equal(M.User.by_username('test-user-3').disabled, True)
-
-    #def test_enable_user(self):
-        #user = M.User.by_username('test-user-3')
-        #user.disabled = True
-        #ThreadLocalORMSession.flush_all()
-        #assert_equal(M.User.by_username('test-user-3').disabled, True)
-        #r = self.app.get('/nf/admin/user/test-user-3')
-        #form = r.forms[0]
-        #assert_equal(form['username'].value, 'test-user-3')
-        #assert_equal(form['status'].value, 'disable')
-        #form['status'].value = 'enable'
-        #r = form.submit()
-        #assert_in(u'User enabled', self.webflash(r))
-        #assert_equal(M.User.by_username('test-user-3').disabled, False)
-
     def test_emails(self):
         # add test@example.com
         with td.audits('New email address: test@example.com', user=True):