diff options
Diffstat (limited to 'integrations/repo_generate_test.go')
-rw-r--r-- | integrations/repo_generate_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/repo_generate_test.go b/integrations/repo_generate_test.go index 66819656f9..b70a4a4797 100644 --- a/integrations/repo_generate_test.go +++ b/integrations/repo_generate_test.go @@ -10,14 +10,14 @@ import ( "net/http/httptest" "testing" - "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/unittest" + user_model "code.gitea.io/gitea/models/user" "github.com/stretchr/testify/assert" ) func testRepoGenerate(t *testing.T, session *TestSession, templateOwnerName, templateRepoName, generateOwnerName, generateRepoName string) *httptest.ResponseRecorder { - generateOwner := unittest.AssertExistsAndLoadBean(t, &models.User{Name: generateOwnerName}).(*models.User) + generateOwner := unittest.AssertExistsAndLoadBean(t, &user_model.User{Name: generateOwnerName}).(*user_model.User) // Step0: check the existence of the generated repo req := NewRequestf(t, "GET", "/%s/%s", generateOwnerName, generateRepoName) |