Esempio n. 1
0
 def test_16_api_78dk_platform_cm_examine_examine_false(self):
     """
     渠道审核不通过
     :return:
     """
     res = PlatformAction.test_api_78dk_platform_cm_examine_examine(
         isadopt='false', message='不过', uid=channelid)
     Assertion.verity(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')
Esempio n. 2
0
 def test_18_api_78dk_platform_cm_examine_examine_true(self):
     # 渠道审核通过
     xqkj_query.update_info('Tbl_ChannelProfile',
                            'audit_state="pending_review"',
                            'channel_uuid="{}"'.format(channelid))
     res = PlatformAction.test_api_78dk_platform_cm_examine_examine(
         isadopt='true', message='通过', uid=channelid)
     Assertion.verity(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')
Esempio n. 3
0
 def test_34_api_78dk_platform_cm_examine_examine_false(self):
     """
     已审核通过的接口再次调用接口使渠道审核不过(应该失败)
     :return:
     """
     xqkj_query.update_info('Tbl_ChannelProfile', 'audit_state="pending_review"',
                            'channel_uuid="{}"'.format(channelid))
     res = PlatformAction.test_api_78dk_platform_cm_examine_examine(isadopt='false', message='不过',
                                                                    uid=channelid)
     Assertion.verity(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')