Show More
@@ -11,7 +11,7 b' from rhodecode.model.users_group import ' | |||
|
11 | 11 | from rhodecode.model.repo import RepoModel |
|
12 | 12 | from rhodecode.model.meta import Session |
|
13 | 13 | from rhodecode.model.scm import ScmModel |
|
14 | from rhodecode.model.db import Repository | |
|
14 | from rhodecode.model.db import Repository, User | |
|
15 | 15 | |
|
16 | 16 | |
|
17 | 17 | API_URL = '/_admin/api' |
@@ -164,7 +164,9 b' class BaseTestApi(object):' | |||
|
164 | 164 | id_, params = _build_data(self.apikey, 'get_users',) |
|
165 | 165 | response = api_call(self, params) |
|
166 | 166 | ret_all = [] |
|
167 | for usr in UserModel().get_all(): | |
|
167 | _users = User.query().filter(User.username != User.DEFAULT_USER)\ | |
|
168 | .order_by(User.username).all() | |
|
169 | for usr in _users: | |
|
168 | 170 | ret = usr.get_api_data() |
|
169 | 171 | ret_all.append(jsonify(ret)) |
|
170 | 172 | expected = ret_all |
General Comments 0
You need to be logged in to leave comments.
Login now