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