##// END OF EJS Templates
fixed broken API tests after excluding default user...
marcink -
r3803:e2ebd880 beta
parent child Browse files
Show More
@@ -11,7 +11,7 b' from rhodecode.model.users_group import '
11 from rhodecode.model.repo import RepoModel
11 from rhodecode.model.repo import RepoModel
12 from rhodecode.model.meta import Session
12 from rhodecode.model.meta import Session
13 from rhodecode.model.scm import ScmModel
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 API_URL = '/_admin/api'
17 API_URL = '/_admin/api'
@@ -164,7 +164,9 b' class BaseTestApi(object):'
164 id_, params = _build_data(self.apikey, 'get_users',)
164 id_, params = _build_data(self.apikey, 'get_users',)
165 response = api_call(self, params)
165 response = api_call(self, params)
166 ret_all = []
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 ret = usr.get_api_data()
170 ret = usr.get_api_data()
169 ret_all.append(jsonify(ret))
171 ret_all.append(jsonify(ret))
170 expected = ret_all
172 expected = ret_all
General Comments 0
You need to be logged in to leave comments. Login now