forked from forgejo/forgejo
test PATCH /api/v1/repos/{owner}/{repo}/issues/comments/{id}
Conflicts: tests/integration/api_comment_test.go
This commit is contained in:
parent
5504ce44d2
commit
49a246f407
2 changed files with 11 additions and 1 deletions
|
@ -326,10 +326,11 @@ func TestAPIGetSystemUserComment(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestAPIEditComment(t *testing.T) {
|
||||
defer tests.AddFixtures("tests/integration/fixtures/TestAPIComment/")()
|
||||
defer tests.PrepareTestEnv(t)()
|
||||
const newCommentBody = "This is the new comment body"
|
||||
|
||||
comment := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: 8},
|
||||
comment := unittest.AssertExistsAndLoadBean(t, &issues_model.Comment{ID: 1008},
|
||||
unittest.Cond("type = ?", issues_model.CommentTypeComment))
|
||||
issue := unittest.AssertExistsAndLoadBean(t, &issues_model.Issue{ID: comment.IssueID})
|
||||
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: issue.RepoID})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue