diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-06-25 05:34:30 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-25 17:34:30 +0800 |
commit | 4c0e5670625f6d4de7e58a6338f2c10dd4d62b5b (patch) | |
tree | aae6af5c4a3c97b3982b7842450af78dfce203da /integrations/api_repo_test.go | |
parent | b4e8a7c4d1be21c92091f4093391500871c130de (diff) | |
download | gitea-4c0e5670625f6d4de7e58a6338f2c10dd4d62b5b.tar.gz gitea-4c0e5670625f6d4de7e58a6338f2c10dd4d62b5b.zip |
Fix improper setup for integration tests (#2050)
Diffstat (limited to 'integrations/api_repo_test.go')
-rw-r--r-- | integrations/api_repo_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/integrations/api_repo_test.go b/integrations/api_repo_test.go index e4f907cc91..4de0c52ab2 100644 --- a/integrations/api_repo_test.go +++ b/integrations/api_repo_test.go @@ -8,13 +8,11 @@ import ( "net/http" "testing" - "code.gitea.io/gitea/models" - "github.com/stretchr/testify/assert" ) func TestAPIUserReposNotLogin(t *testing.T) { - assert.NoError(t, models.LoadFixtures()) + prepareTestEnv(t) req := NewRequest(t, "GET", "/api/v1/users/user2/repos") resp := MakeRequest(req) @@ -22,7 +20,7 @@ func TestAPIUserReposNotLogin(t *testing.T) { } func TestAPISearchRepoNotLogin(t *testing.T) { - assert.NoError(t, models.LoadFixtures()) + prepareTestEnv(t) req := NewRequest(t, "GET", "/api/v1/repos/search?q=Test") resp := MakeRequest(req) |