tests: fixes existing tests and add new assertion
This commit is contained in:
parent
3ebb39e681
commit
6e8b6c4975
8 changed files with 55 additions and 117 deletions
|
|
@ -31,7 +31,12 @@ class TestGetUsers(object):
|
|||
)
|
||||
response = api_call(self.app, params)
|
||||
ret_all = []
|
||||
_users = User.query().filter(User.username != User.DEFAULT_USER).order_by(User.username).all()
|
||||
_users = (
|
||||
User.query()
|
||||
.filter(User.username.notin_([User.DEFAULT_USER, User.GHOST_USER]))
|
||||
.order_by(User.username)
|
||||
.all()
|
||||
)
|
||||
for usr in _users:
|
||||
ret = usr.get_api_data(include_secrets=True)
|
||||
ret_all.append(jsonify(ret))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue