Selaa lähdekoodia

All test case use SetupConfig (which is hardcode value)

master
Patrick Peng Sun 8 vuotta sitten
vanhempi
commit
ca20ae8800
2 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. +1
    -1
      accessToken_test.go
  2. +4
    -0
      common_test.go

+ 1
- 1
accessToken_test.go Näytä tiedosto

@@ -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")

+ 4
- 0
common_test.go Näytä tiedosto

@@ -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) {

Loading…
Peruuta
Tallenna