MCPcopy
hub / github.com/wechatpy/wechatpy / test_create_menu

Method test_create_menu

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

Source from the content-addressed store, hash-verified

200 self.assertEqual('SEND_SUCCESS', result['msg_status'])
201
202 def test_create_menu(self):
203 with HTTMock(wechat_api_mock):
204 result = self.client.menu.create({
205 'button': [
206 {
207 'type': 'click',
208 'name': 'test',
209 'key': 'test'
210 }
211 ]
212 })
213 self.assertEqual(0, result['errcode'])
214
215 def test_get_menu(self):
216 with HTTMock(wechat_api_mock):

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected