aboutsummaryrefslogtreecommitdiffstats
path: root/modules/convert/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/convert/user_test.go')
-rw-r--r--modules/convert/user_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/convert/user_test.go b/modules/convert/user_test.go
index 3939653441..7837910ffe 100644
--- a/modules/convert/user_test.go
+++ b/modules/convert/user_test.go
@@ -8,10 +8,12 @@ import (
"testing"
"code.gitea.io/gitea/models"
+
"github.com/stretchr/testify/assert"
)
func TestUser_ToUser(t *testing.T) {
+ assert.NoError(t, models.PrepareTestDatabase())
user1 := models.AssertExistsAndLoadBean(t, &models.User{ID: 1, IsAdmin: true}).(*models.User)