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

Add integration test for pull-request merge (#1912)

This commit is contained in:
Mura Li
2017-06-15 19:20:39 +08:00
committed by Lunny Xiao
parent 13f0e1255a
commit 01322af2e8
4 changed files with 62 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/assert"
)
func testRepoFork(t *testing.T, session *TestSession) {
func testRepoFork(t *testing.T, session *TestSession) *TestResponse {
// Step0: check the existence of the to-fork repo
req := NewRequest(t, "GET", "/user1/repo1")
resp := session.MakeRequest(t, req)
@@ -53,6 +53,8 @@ func testRepoFork(t *testing.T, session *TestSession) {
req = NewRequest(t, "GET", "/user1/repo1")
resp = session.MakeRequest(t, req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
return resp
}
func TestRepoFork(t *testing.T) {