1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

use numbers and not http.Status___ enum

This commit is contained in:
6543
2019-12-19 23:55:23 +01:00
parent e2fc0a0dfd
commit b1ff386e24
14 changed files with 82 additions and 96 deletions

View File

@@ -5,7 +5,6 @@
package repo
import (
"net/http"
"testing"
"code.gitea.io/gitea/models"
@@ -24,7 +23,7 @@ func TestTestHook(t *testing.T) {
test.LoadRepoCommit(t, ctx)
test.LoadUser(t, ctx, 2)
TestHook(&context.APIContext{Context: ctx, Org: nil})
assert.EqualValues(t, http.StatusNoContent, ctx.Resp.Status())
assert.EqualValues(t, 204, ctx.Resp.Status())
models.AssertExistsAndLoadBean(t, &models.HookTask{
RepoID: 1,