Skip to content

Commit 4c0e567

Browse files
ethantkoeniglunny
authored andcommitted
Fix improper setup for integration tests (#2050)
1 parent b4e8a7c commit 4c0e567

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

integrations/api_repo_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,19 @@ import (
88
"net/http"
99
"testing"
1010

11-
"code.gitea.io/gitea/models"
12-
1311
"github.com/stretchr/testify/assert"
1412
)
1513

1614
func TestAPIUserReposNotLogin(t *testing.T) {
17-
assert.NoError(t, models.LoadFixtures())
15+
prepareTestEnv(t)
1816

1917
req := NewRequest(t, "GET", "/api/v1/users/user2/repos")
2018
resp := MakeRequest(req)
2119
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
2220
}
2321

2422
func TestAPISearchRepoNotLogin(t *testing.T) {
25-
assert.NoError(t, models.LoadFixtures())
23+
prepareTestEnv(t)
2624

2725
req := NewRequest(t, "GET", "/api/v1/repos/search?q=Test")
2826
resp := MakeRequest(req)

0 commit comments

Comments
 (0)