Add some api integration tests (#18872)

depends on #18871

Added some api integration tests to help testing of #18798.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
authored and GitHub committed 2022-10-18 00:23:27 +08:00
1 parent 18622a0705
commit a577214760
17 files changed
+2225 -289

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ func TestPulls(t *testing.T) {
Pulls(ctx)
assert.EqualValues(t, http.StatusOK, ctx.Resp.Status())
assert.Len(t, ctx.Data["Issues"], 3)
assert.Len(t, ctx.Data["Issues"], 4)
}
func TestMilestones(t *testing.T) {