{"action":"created","issue":{"url":"https://api.github.com/repos/astaxie/beego/issues/1213","labels_url":"https://api.github.com/repos/astaxie/beego/issues/1213/labels{/name}","comments_url":"https://api.github.com/repos/astaxie/beego/issues/1213/comments","events_url":"https://api.github.com/repos/astaxie/beego/issues/1213/events","html_url":"https://github.com/astaxie/beego/issues/1213","id":88040802,"number":1213,"title":"Test run mode (set in TestBeegoInit()) doesn't stick because ParseConfig sets it by env var","user":{"login":"orospakr","id":16714,"avatar_url":"https://avatars.githubusercontent.com/u/16714?v=3","gravatar_id":"","url":"https://api.github.com/users/orospakr","html_url":"https://github.com/orospakr","followers_url":"https://api.github.com/users/orospakr/followers","following_url":"https://api.github.com/users/orospakr/following{/other_user}","gists_url":"https://api.github.com/users/orospakr/gists{/gist_id}","starred_url":"https://api.github.com/users/orospakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orospakr/subscriptions","organizations_url":"https://api.github.com/users/orospakr/orgs","repos_url":"https://api.github.com/users/orospakr/repos","events_url":"https://api.github.com/users/orospakr/events{/privacy}","received_events_url":"https://api.github.com/users/orospakr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-13T17:53:40Z","updated_at":"2015-06-13T17:55:30Z","closed_at":null,"body":"`TestBeegoInit()` in beego.go sets RunMode to \"test\", only to have it immediately squished with \"Dev\" when that very same function calls \"ParseConfig\" which does the usual environment setup behaviour."},"comment":{"url":"https://api.github.com/repos/astaxie/beego/issues/comments/111736809","html_url":"https://github.com/astaxie/beego/issues/1213#issuecomment-111736809","issue_url":"https://api.github.com/repos/astaxie/beego/issues/1213","id":111736809,"user":{"login":"orospakr","id":16714,"avatar_url":"https://avatars.githubusercontent.com/u/16714?v=3","gravatar_id":"","url":"https://api.github.com/users/orospakr","html_url":"https://github.com/orospakr","followers_url":"https://api.github.com/users/orospakr/followers","following_url":"https://api.github.com/users/orospakr/following{/other_user}","gists_url":"https://api.github.com/users/orospakr/gists{/gist_id}","starred_url":"https://api.github.com/users/orospakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orospakr/subscriptions","organizations_url":"https://api.github.com/users/orospakr/orgs","repos_url":"https://api.github.com/users/orospakr/repos","events_url":"https://api.github.com/users/orospakr/events{/privacy}","received_events_url":"https://api.github.com/users/orospakr/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T17:55:30Z","updated_at":"2015-06-13T17:55:30Z","body":"As a workaround in my app, I'm calling:\r\n\r\n```golang\r\nos.Setenv(\"BEEGO_RUNMODE\", \"test\")\r\n```\r\n\r\nbefore I call `TestBeegoInit()` in my test setup code."}}