1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-15 16:42:16 +00:00

Refactoring: keep config package beego independent

This commit is contained in:
Vitaly Velikodny
2015-12-30 11:22:09 +03:00
parent 48fd9675ad
commit 4b368d9f5e
4 changed files with 4 additions and 10 deletions

View File

@@ -18,7 +18,6 @@ import (
"os"
"testing"
"github.com/astaxie/beego"
"github.com/astaxie/beego/config"
)
@@ -63,7 +62,7 @@ func TestYaml(t *testing.T) {
t.Error(pi)
t.Fatal(err)
}
if yamlconf.String("runmode") != beego.DEV {
if yamlconf.String("runmode") != "dev" {
t.Fatal("runmode not equal to dev")
}
if v, err := yamlconf.Bool("autorender"); err != nil || v != false {