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/17 15:34:18 UTC

[31/35] 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/9ab94a83
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/9ab94a83
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/9ab94a83

Branch: refs/heads/je/42cc_7657
Commit: 9ab94a839b32cd9f886fa76fab42e53b8759f481
Parents: 4cc6358
Author: Igor Bondarenko <je...@gmail.com>
Authored: Wed Sep 17 11:57:24 2014 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Wed Sep 17 16:11:38 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/9ab94a83/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 f5e7389..509ee95 100644
--- a/Allura/allura/tests/functional/test_site_admin.py
+++ b/Allura/allura/tests/functional/test_site_admin.py
@@ -290,31 +290,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):