(self)
| 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' |