MCPcopy
hub / github.com/wechatpy/wechatpy / test_create_qrcode

Method test_create_qrcode

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

Source from the content-addressed store, hash-verified

341 self.assertIn("OPENID2", users)
342
343 def test_create_qrcode(self):
344 data = {
345 'expire_seconds': 1800,
346 'action_name': 'QR_SCENE',
347 'action_info': {
348 'scene': {'scene_id': 123}
349 }
350 }
351 with HTTMock(wechat_api_mock):
352 result = self.client.qrcode.create(data)
353 self.assertEqual(1800, result['expire_seconds'])
354
355 def test_get_qrcode_url_with_str_ticket(self):
356 ticket = '123'

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected