fixed integrationtests
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2019-10-10 21:38:11 +02:00
parent 646f56bb26
commit 9a9483f973
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ package integrations
import (
"code.vikunja.io/api/pkg/config"
"code.vikunja.io/api/pkg/files"
"code.vikunja.io/api/pkg/models"
"code.vikunja.io/api/pkg/routes"
v1 "code.vikunja.io/api/pkg/routes/api/v1"
@ -74,6 +75,8 @@ var (
func setupTestEnv() (e *echo.Echo, err error) {
config.InitConfig()
// Some tests use the file engine, so we'll need to initialize that
files.InitTests()
models.SetupTests(config.ServiceRootpath.GetString())
err = models.LoadFixtures()