forked from forgejo/forgejo
Display URLs in integration test logs (#1924)
This commit is contained in:
parent
6d613fb28e
commit
61716bd8f7
15 changed files with 47 additions and 71 deletions
|
@ -16,8 +16,7 @@ import (
|
|||
func TestAPIUserReposNotLogin(t *testing.T) {
|
||||
assert.NoError(t, models.LoadFixtures())
|
||||
|
||||
req, err := http.NewRequest("GET", "/api/v1/users/user2/repos", nil)
|
||||
assert.NoError(t, err)
|
||||
req := NewRequest(t, "GET", "/api/v1/users/user2/repos")
|
||||
resp := MakeRequest(req)
|
||||
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
|
||||
}
|
||||
|
@ -25,8 +24,7 @@ func TestAPIUserReposNotLogin(t *testing.T) {
|
|||
func TestAPISearchRepoNotLogin(t *testing.T) {
|
||||
assert.NoError(t, models.LoadFixtures())
|
||||
|
||||
req, err := http.NewRequest("GET", "/api/v1/repos/search?q=Test", nil)
|
||||
assert.NoError(t, err)
|
||||
req := NewRequest(t, "GET", "/api/v1/repos/search?q=Test")
|
||||
resp := MakeRequest(req)
|
||||
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue