Explorar el Código

All test case use SetupConfig (which is hardcode value)

master
Patrick Peng Sun hace 8 años
padre
commit
ca20ae8800
Se han modificado 2 ficheros con 5 adiciones y 1 borrados
  1. +1
    -1
      accessToken_test.go
  2. +4
    -0
      common_test.go

+ 1
- 1
accessToken_test.go Ver fichero

@@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar