fix(files): keyvalue init in tests

This commit is contained in:
kolaente 2023-12-06 14:05:08 +01:00
parent 6ef1bc3944
commit 74e40ccfb4
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,8 @@ import (
"code.vikunja.io/api/pkg/config"
"code.vikunja.io/api/pkg/db"
"code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/modules/keyvalue"
"github.com/spf13/afero"
"github.com/stretchr/testify/assert"
)
@ -77,6 +79,8 @@ func InitTests() {
}
InitTestFileHandler()
keyvalue.InitStorage()
}
// FileStat stats a file. This is an exported function to be able to test this from outide of the package