tests: fixes existing tests and add new assertion

This commit is contained in:
ievgenii vdovenko 2025-07-26 10:36:17 +02:00
parent 3ebb39e681
commit 6e8b6c4975
8 changed files with 55 additions and 117 deletions

View file

@ -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))