aboutsummaryrefslogtreecommitdiffstats
path: root/models/gpg_key_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/gpg_key_test.go')
-rw-r--r--models/gpg_key_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/models/gpg_key_test.go b/models/gpg_key_test.go
index be2d8a223b..7a3cbfd67f 100644
--- a/models/gpg_key_test.go
+++ b/models/gpg_key_test.go
@@ -8,6 +8,7 @@ import (
"testing"
"time"
+ "code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/modules/timeutil"
"github.com/stretchr/testify/assert"
@@ -192,9 +193,9 @@ Unknown GPG key with good email
}
func TestCheckGPGUserEmail(t *testing.T) {
- assert.NoError(t, PrepareTestDatabase())
+ assert.NoError(t, db.PrepareTestDatabase())
- _ = AssertExistsAndLoadBean(t, &User{ID: 1}).(*User)
+ _ = db.AssertExistsAndLoadBean(t, &User{ID: 1}).(*User)
testEmailWithUpperCaseLetters := `-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1