aboutsummaryrefslogtreecommitdiffstats
path: root/modules/repository/create_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repository/create_test.go')
-rw-r--r--modules/repository/create_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/repository/create_test.go b/modules/repository/create_test.go
index 040c061d92..d833017160 100644
--- a/modules/repository/create_test.go
+++ b/modules/repository/create_test.go
@@ -10,13 +10,14 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/models/db"
+ "code.gitea.io/gitea/models/unittest"
"code.gitea.io/gitea/modules/structs"
"github.com/stretchr/testify/assert"
)
func TestIncludesAllRepositoriesTeams(t *testing.T) {
- assert.NoError(t, db.PrepareTestDatabase())
+ assert.NoError(t, unittest.PrepareTestDatabase())
testTeamRepositories := func(teamID int64, repoIds []int64) {
team := db.AssertExistsAndLoadBean(t, &models.Team{ID: teamID}).(*models.Team)