소스 검색

All test case use SetupConfig (which is hardcode value)

master
Patrick Peng Sun 8 년 전
부모
커밋
ca20ae8800
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      accessToken_test.go
  2. +4
    -0
      common_test.go

+ 1
- 1
accessToken_test.go 파일 보기

@@ -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 파일 보기

@@ -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…
취소
저장