audit-logs: implemented pull request and comment events.
This commit is contained in:
parent
8a3441e96e
commit
926a79e98e
19 changed files with 196 additions and 170 deletions
|
|
@ -62,13 +62,12 @@ class TestCommentPullRequest(object):
|
|||
}
|
||||
assert_ok(id_, expected, response.body)
|
||||
|
||||
action = 'user_commented_pull_request:%d' % pull_request_id
|
||||
journal = UserLog.query()\
|
||||
.filter(UserLog.user_id == author)\
|
||||
.filter(UserLog.repository_id == repo)\
|
||||
.filter(UserLog.action == action)\
|
||||
.filter(UserLog.repository_id == repo) \
|
||||
.order_by('user_log_id') \
|
||||
.all()
|
||||
assert len(journal) == 2
|
||||
assert journal[-1].action == 'repo.pull_request.comment.create'
|
||||
|
||||
@pytest.mark.backends("git", "hg")
|
||||
def test_api_comment_pull_request_change_status(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue