mirror of
https://github.com/go-gitea/gitea
synced 2025-07-16 07:18:37 +00:00
Decouple unit test code from business code (#17623)
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"time"
|
||||
|
||||
"code.gitea.io/gitea/models/db"
|
||||
"code.gitea.io/gitea/models/unittest"
|
||||
"code.gitea.io/gitea/modules/timeutil"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
@@ -193,7 +194,7 @@ Unknown GPG key with good email
|
||||
}
|
||||
|
||||
func TestCheckGPGUserEmail(t *testing.T) {
|
||||
assert.NoError(t, db.PrepareTestDatabase())
|
||||
assert.NoError(t, unittest.PrepareTestDatabase())
|
||||
|
||||
_ = db.AssertExistsAndLoadBean(t, &User{ID: 1}).(*User)
|
||||
|
||||
|
Reference in New Issue
Block a user