mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 08:48:37 +00:00
Improve integration test helper functions (#2049)
Set request headers in helper functions, and new helper for requests with string-formatted URLs
This commit is contained in:
@@ -24,7 +24,6 @@ func TestSignup(t *testing.T) {
|
||||
"password": "examplePassword",
|
||||
"retype": "examplePassword",
|
||||
})
|
||||
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
|
||||
resp := MakeRequest(req)
|
||||
assert.EqualValues(t, http.StatusFound, resp.HeaderCode)
|
||||
|
||||
|
Reference in New Issue
Block a user