Fix setting up keyvalue storage in tests
This commit is contained in:
parent
d746c1bede
commit
9c2a59582a
2 changed files with 6 additions and 2 deletions
|
@ -24,13 +24,13 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"code.vikunja.io/api/pkg/files"
|
||||
|
||||
"code.vikunja.io/api/pkg/config"
|
||||
"code.vikunja.io/api/pkg/db"
|
||||
"code.vikunja.io/api/pkg/events"
|
||||
"code.vikunja.io/api/pkg/files"
|
||||
"code.vikunja.io/api/pkg/models"
|
||||
"code.vikunja.io/api/pkg/modules/auth"
|
||||
"code.vikunja.io/api/pkg/modules/keyvalue"
|
||||
"code.vikunja.io/api/pkg/routes"
|
||||
"code.vikunja.io/api/pkg/user"
|
||||
"code.vikunja.io/web"
|
||||
|
@ -84,6 +84,7 @@ func setupTestEnv() (e *echo.Echo, err error) {
|
|||
user.InitTests()
|
||||
models.SetupTests()
|
||||
events.Fake()
|
||||
keyvalue.InitStorage()
|
||||
|
||||
err = db.LoadFixtures()
|
||||
if err != nil {
|
||||
|
|
|
@ -20,6 +20,7 @@ import (
|
|||
"code.vikunja.io/api/pkg/db"
|
||||
"code.vikunja.io/api/pkg/events"
|
||||
"code.vikunja.io/api/pkg/log"
|
||||
"code.vikunja.io/api/pkg/modules/keyvalue"
|
||||
)
|
||||
|
||||
// InitTests handles the actual bootstrapping of the test env
|
||||
|
@ -40,4 +41,6 @@ func InitTests() {
|
|||
}
|
||||
|
||||
events.Fake()
|
||||
|
||||
keyvalue.InitStorage()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue