db: use more consistent sorting using real objects, strings are deprecated in laters sqlalchemy query syntax.
This commit is contained in:
parent
c3a0748ecb
commit
a17adaa9f2
7 changed files with 12 additions and 11 deletions
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue