mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
added unit test for loading configuration file
This commit is contained in:
22
pkg/setting/setting_test.go
Normal file
22
pkg/setting/setting_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package setting
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
)
|
||||
|
||||
func TestLoadingSettings(t *testing.T) {
|
||||
|
||||
WorkDir, _ = filepath.Abs("../../")
|
||||
|
||||
Convey("Testing loading settings from ini file", t, func() {
|
||||
|
||||
Convey("Given the default ini files", func() {
|
||||
NewConfigContext()
|
||||
|
||||
So(AppName, ShouldEqual, "Grafana")
|
||||
})
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user