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:
KN4CK3R 2022-10-17 18:23:27 +02:00 committed by GitHub
parent 18622a0705
commit a577214760
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 2225 additions and 289 deletions

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) {