1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-23 08:47:42 -05:00

test DELETE /api/v1/repos/{owner}/{repo}/issues/comments/{id}

Conflicts:
	tests/integration/api_comment_test.go

(cherry picked from commit 236c5e172c)
This commit is contained in:
Loïc Dachary 2023-11-02 15:31:00 +01:00
parent dac56f7ed7
commit ed87de558f
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2

View file

@ -213,9 +213,10 @@ func TestAPIEditComment(t *testing.T) {
}
func TestAPIDeleteComment(t *testing.T) {
defer tests.AddFixtures("tests/integration/fixtures/TestAPIComment/")()
defer tests.PrepareTestEnv(t)()
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})