db: use more consistent sorting using real objects, strings are deprecated in laters sqlalchemy query syntax.

This commit is contained in:
Marcin Kuzminski 2019-09-30 13:24:56 +02:00
parent c3a0748ecb
commit a17adaa9f2
7 changed files with 12 additions and 11 deletions

View file

@ -65,7 +65,7 @@ class TestCommentPullRequest(object):
journal = UserLog.query()\
.filter(UserLog.user_id == author)\
.filter(UserLog.repository_id == repo) \
.order_by('user_log_id') \
.order_by(UserLog.user_log_id.asc()) \
.all()
assert journal[-1].action == 'repo.pull_request.comment.create'