| @@ -9,7 +9,7 @@ import ( | |||
| var toUser = "oUN420Wj78vnkNeAJY7RMPXA28oc" // "oUN420bxqFqlx0ZQHciUOesZO3PE" | |||
| func TestSendTxt(t *testing.T) { | |||
| msg := fmt.Sprintf("测试消息 & < >, %s ", time.Now().String()) | |||
| // randinit() | |||
| @@ -23,18 +23,18 @@ func TestSendTxt(t *testing.T) { | |||
| } | |||
| func TestSendPic(t *testing.T) { | |||
| kfSendPic(toUser, "media_for_test/200x200.png") | |||
| } | |||
| func TestSendVoice(t *testing.T) { | |||
| kfSendVoice(toUser, "media_for_test/example.amr") | |||
| //kfSendVoiceByMediaID(toUser, "8Tc-pcFxEMtbO6T71AaL0A16taJUpwolXpB06mBBfaPZ68R3__1nN7HuZAUyW8xR") | |||
| } | |||
| func TestSendVideo(t *testing.T) { | |||
| kfSendVideo(toUser, "media_for_test/video.mp4", "测试时品", "普通描述", "media_for_test/music-thumb.jpg") | |||
| // kfSendVideoByMediaID(toUser, | |||
| @@ -45,7 +45,7 @@ func TestSendVideo(t *testing.T) { | |||
| } | |||
| func TestSendMusic(t *testing.T) { | |||
| tID := uploadThumb("media_for_test/music-thumb.jpg") | |||
| description := fmt.Sprintf("音乐描述 %s", time.Now().String()) | |||
| kfSendMusic(toUser, | |||
| @@ -57,7 +57,7 @@ func TestSendMusic(t *testing.T) { | |||
| } | |||
| func TestSendArticle(t *testing.T) { | |||
| articles := []sendNewsArticle{} | |||
| for i := 1; i <= 8; i++ { | |||
| a := sendNewsArticle{} | |||
| @@ -71,6 +71,6 @@ func TestSendArticle(t *testing.T) { | |||
| } | |||
| func TestSendArticleByMediaID(t *testing.T) { | |||
| kfSendMPNews(toUser, "e2iNEiSxCX5TV1WbFd0TQP4_MKtjcY1q-4UPIZFrHhw") | |||
| } | |||