We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e8a7c commit 4c0e567Copy full SHA for 4c0e567
integrations/api_repo_test.go
@@ -8,21 +8,19 @@ import (
8
"net/http"
9
"testing"
10
11
- "code.gitea.io/gitea/models"
12
-
13
"github.com/stretchr/testify/assert"
14
)
15
16
func TestAPIUserReposNotLogin(t *testing.T) {
17
- assert.NoError(t, models.LoadFixtures())
+ prepareTestEnv(t)
18
19
req := NewRequest(t, "GET", "/api/v1/users/user2/repos")
20
resp := MakeRequest(req)
21
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
22
}
23
24
func TestAPISearchRepoNotLogin(t *testing.T) {
25
26
27
req := NewRequest(t, "GET", "/api/v1/repos/search?q=Test")
28
0 commit comments