aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/api_repo_archive_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/api_repo_archive_test.go')
-rw-r--r--integrations/api_repo_archive_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/api_repo_archive_test.go b/integrations/api_repo_archive_test.go
index 6de61eea9f..7778b7ff69 100644
--- a/integrations/api_repo_archive_test.go
+++ b/integrations/api_repo_archive_test.go
@@ -11,7 +11,7 @@ import (
"net/url"
"testing"
- "code.gitea.io/gitea/models"
+ repo_model "code.gitea.io/gitea/models/repo"
"code.gitea.io/gitea/models/unittest"
user_model "code.gitea.io/gitea/models/user"
@@ -21,7 +21,7 @@ import (
func TestAPIDownloadArchive(t *testing.T) {
defer prepareTestEnv(t)()
- repo := unittest.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository)
+ repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1}).(*repo_model.Repository)
user2 := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2}).(*user_model.User)
session := loginUser(t, user2.LowerName)
token := getTokenForLoggedInUser(t, session)