summaryrefslogtreecommitdiffstats
path: root/models/issues
diff options
context:
space:
mode:
Diffstat (limited to 'models/issues')
-rw-r--r--models/issues/content_history_test.go3
-rw-r--r--models/issues/main_test.go4
2 files changed, 4 insertions, 3 deletions
diff --git a/models/issues/content_history_test.go b/models/issues/content_history_test.go
index dadeb484b1..f040a7dc57 100644
--- a/models/issues/content_history_test.go
+++ b/models/issues/content_history_test.go
@@ -8,13 +8,14 @@ import (
"testing"
"code.gitea.io/gitea/models/db"
+ "code.gitea.io/gitea/models/unittest"
"code.gitea.io/gitea/modules/timeutil"
"github.com/stretchr/testify/assert"
)
func TestContentHistory(t *testing.T) {
- assert.NoError(t, db.PrepareTestDatabase())
+ assert.NoError(t, unittest.PrepareTestDatabase())
dbCtx := db.DefaultContext
dbEngine := db.GetEngine(dbCtx)
diff --git a/models/issues/main_test.go b/models/issues/main_test.go
index 61a15c53b7..af71f038d6 100644
--- a/models/issues/main_test.go
+++ b/models/issues/main_test.go
@@ -8,9 +8,9 @@ import (
"path/filepath"
"testing"
- "code.gitea.io/gitea/models/db"
+ "code.gitea.io/gitea/models/unittest"
)
func TestMain(m *testing.M) {
- db.MainTest(m, filepath.Join("..", ".."), "")
+ unittest.MainTest(m, filepath.Join("..", ".."), "")
}