mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Add integration test for pull-request merge (#1912)
This commit is contained in:
		@@ -14,7 +14,7 @@ import (
 | 
			
		||||
	"github.com/stretchr/testify/assert"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func testPullCreate(t *testing.T, session *TestSession, user, repo, branch string) {
 | 
			
		||||
func testPullCreate(t *testing.T, session *TestSession, user, repo, branch string) *TestResponse {
 | 
			
		||||
	req := NewRequest(t, "GET", path.Join(user, repo))
 | 
			
		||||
	resp := session.MakeRequest(t, req)
 | 
			
		||||
	assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
 | 
			
		||||
@@ -45,6 +45,8 @@ func testPullCreate(t *testing.T, session *TestSession, user, repo, branch strin
 | 
			
		||||
	assert.EqualValues(t, http.StatusFound, resp.HeaderCode)
 | 
			
		||||
 | 
			
		||||
	//TODO check the redirected URL
 | 
			
		||||
 | 
			
		||||
	return resp
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func TestPullCreate(t *testing.T) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user