New configuration system
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
DisableValidation = false
|
||||
User = "deluan"
|
||||
Password = "wordpass"
|
||||
DbPath = "/tmp/testDb"
|
||||
MusicFolder = "./tests/itunes-library.xml"
|
||||
DownsampleCommand = "ffmpeg -i %s -b:a %bk mp3 -"
|
||||
@@ -7,10 +7,12 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/deluan/gosonic/conf"
|
||||
"github.com/deluan/gosonic/utils"
|
||||
)
|
||||
|
||||
func Init(t *testing.T, skipOnShort bool) {
|
||||
conf.LoadFromFile("../tests/gosonic-test.toml")
|
||||
if skipOnShort && testing.Short() {
|
||||
t.Skip("skipping test in short mode.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user