grids: fixed tests and added one for permissions to repository group.
This commit is contained in:
parent
7260aed821
commit
ef0dad2905
7 changed files with 101 additions and 43 deletions
|
|
@ -93,7 +93,7 @@ class TestLoginController(object):
|
|||
session = response.get_session_from_response()
|
||||
username = session['rhodecode_user'].get('username')
|
||||
assert username == 'test_admin'
|
||||
response.mustcontain('/%s' % HG_REPO)
|
||||
response.mustcontain('logout')
|
||||
|
||||
def test_login_regular_ok(self):
|
||||
response = self.app.post(route_path('login'),
|
||||
|
|
@ -104,8 +104,7 @@ class TestLoginController(object):
|
|||
session = response.get_session_from_response()
|
||||
username = session['rhodecode_user'].get('username')
|
||||
assert username == 'test_regular'
|
||||
|
||||
response.mustcontain('/%s' % HG_REPO)
|
||||
response.mustcontain('logout')
|
||||
|
||||
def test_login_regular_forbidden_when_super_admin_restriction(self):
|
||||
from rhodecode.authentication.plugins.auth_rhodecode import RhodeCodeAuthPlugin
|
||||
|
|
@ -225,7 +224,7 @@ class TestLoginController(object):
|
|||
session = response.get_session_from_response()
|
||||
username = session['rhodecode_user'].get('username')
|
||||
assert username == temp_user
|
||||
response.mustcontain('/%s' % HG_REPO)
|
||||
response.mustcontain('logout')
|
||||
|
||||
# new password should be bcrypted, after log-in and transfer
|
||||
user = User.get_by_username(temp_user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue