MCPcopy
hub / github.com/wechatpy/wechatpy / test_update_menu

Method test_update_menu

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

Source from the content-addressed store, hash-verified

223 self.assertEqual(0, result['errcode'])
224
225 def test_update_menu(self):
226 with HTTMock(wechat_api_mock):
227 result = self.client.menu.update({
228 'button': [
229 {
230 'type': 'click',
231 'name': 'test',
232 'key': 'test'
233 }
234 ]
235 })
236 self.assertEqual(0, result['errcode'])
237
238 def test_short_url(self):
239 with HTTMock(wechat_api_mock):

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected