wechat_push_test.go 305 B

12345678910111213141516171819
  1. package main
  2. import (
  3. "pmail/config"
  4. "pmail/dto/parsemail"
  5. "testing"
  6. )
  7. func testInit() {
  8. config.Init()
  9. }
  10. func TestWeChatPushHook_ReceiveParseAfter(t *testing.T) {
  11. testInit()
  12. w := NewWechatPushHook()
  13. w.ReceiveParseAfter(nil, &parsemail.Email{Subject: "标题", Text: []byte("文本内容")})
  14. }