MCPcopy
hub / github.com/wechatpy/wechatpy / test_send_articles_message

Method test_send_articles_message

tests/test_client.py:146–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

144 self.assertEqual(0, result['errcode'])
145
146 def test_send_articles_message(self):
147 with HTTMock(wechat_api_mock):
148 articles = [{
149 'title': 'test',
150 'description': 'test',
151 'url': 'http://www.qq.com',
152 'image': 'http://www.qq.com'
153 }]
154 result = self.client.message.send_articles(1, articles)
155 self.assertEqual(0, result['errcode'])
156
157 def test_send_card_message(self):
158 with HTTMock(wechat_api_mock):

Callers

nothing calls this directly

Calls 1

send_articlesMethod · 0.45

Tested by

no test coverage detected