mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Unit tests for routers/repo/issue_label (#3198)
This commit is contained in:
		| @@ -303,9 +303,3 @@ func GetCSRF(t testing.TB, session *TestSession, urlStr string) string { | ||||
| 	doc := NewHTMLParser(t, resp.Body) | ||||
| 	return doc.GetCSRF() | ||||
| } | ||||
|  | ||||
| func RedirectURL(t testing.TB, resp *httptest.ResponseRecorder) string { | ||||
| 	urlSlice := resp.HeaderMap["Location"] | ||||
| 	assert.NotEmpty(t, urlSlice, "No redirect URL founds") | ||||
| 	return urlSlice[0] | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user