Better config handling with constants (#83)
This commit is contained in:
parent
f1d21ea52b
commit
1f1a079fd3
17 changed files with 200 additions and 120 deletions
|
|
@ -18,11 +18,10 @@ package models
|
|||
|
||||
import (
|
||||
"code.vikunja.io/api/pkg/config"
|
||||
"github.com/spf13/viper"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
config.InitConfig()
|
||||
MainTest(m, viper.GetString("service.rootpath"))
|
||||
MainTest(m, config.ServiceRootpath.GetString())
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue