| @@ -9,7 +9,7 @@ import ( | |||
| //get accesstoken from wechat server or local cache file | |||
| func TestAccessToken(t *testing.T) { | |||
| readConfig() | |||
| SetupConfig() | |||
| token, err := GetAccessToken() | |||
| if err != nil { | |||
| t.Error("Cannot get AccessToken From Tencent Wechat Server") | |||
| @@ -15,6 +15,10 @@ func SetupConfig() { | |||
| "/tmp/wechat_hitxy_access_token", | |||
| "gh_f09231355c68"} | |||
| CRMConfig = EspoCRMAPIConfig{ | |||
| "https://c.hitxy.org.au/", | |||
| "wechat", | |||
| "crmwechat.api"} | |||
| } | |||
| func AssertEqual(t *testing.T, a interface{}, b interface{}, message string) { | |||