def test_021_api_78dk_platform_tm_first_viewLabels_is_del(self):
     """
     Time       :2019-07-22
     author     : 闫红
     desc       : 标签查询v1.3.0,标签被删除后查询
     """
     res = PlatformAction.test_api_78dk_platform_tm_first_viewLabels()
     Assertion.verity(json.loads(res)['msg'], '成功')
     Assertion.verity(json.loads(res)['code'], '10000')
     Assertion.verityNotContain(json.loads(res)['data'], '{}'.format(labelcontent), message='断言不包含被删除标签')
 def test_019_userManage_getUsers_search_five(self):
     """
     Time       :2019-06-18
     author     : 罗林
     desc       :系统用户列表
     """
     rs1 = FinanceAction.test_userManage_getUsers(pagenum=1,
                                                  pagesize=10,
                                                  keyword='')
     Assertion.verity(json.loads(rs1)['code'], 'F2000')
     Assertion.verity(json.loads(rs1)['message'], '请求成功')
     Assertion.verityNotContain(json.loads(rs1)['data'], user_name)
示例#3
0
 def test_042_backstage_system_config_info_none(self):
     """
     Time       :2019-07-15
     author     : 闫红
     desc       : 配置查询接口,查询新增系统清空后的配置
     """
     business_id = pq.get_business_id('系统')
     rs = PmsAction.test_backstage_system_config_info(id=business_id)
     Assertion.verity(json.loads(rs)['code'], 10000)
     Assertion.verity(json.loads(rs)['msg'], "SUCCESS")
     Assertion.verityNotContain(json.loads(rs)['data'], "des")
     Assertion.verityNotContain(json.loads(rs)['data'], "key")
 def test_010_role_getRoles_thr(self):
     """
     Time       :2019-06-18
     author     : 罗林
     desc       :获取角色列表
     """
     rs1 = FinanceAction.test_role_getRoles(pagenum=1, pagesize=10)
     Assertion.verity(json.loads(rs1)['code'], 'F2000')
     Assertion.verity(json.loads(rs1)['message'], '请求成功')
     Assertion.verity(json.loads(rs1)['data']['pageNum'], 1)
     Assertion.verity(json.loads(rs1)['data']['pageSize'], 10)
     Assertion.verityContain(json.loads(rs1)['data'], 'total')
     Assertion.verityContain(json.loads(rs1)['data'], 'totalPage')
     Assertion.verityContain(json.loads(rs1)['data'], 'record')
     Assertion.verityContain(json.loads(rs1)['data']['record'], 'id')
     Assertion.verityContain(json.loads(rs1)['data']['record'], 'orgCode')
     Assertion.verityContain(json.loads(rs1)['data']['record'], 'remark')
     Assertion.verityContain(json.loads(rs1)['data']['record'], 'count')
     Assertion.verityContain(json.loads(rs1)['data']['record'], role_name)
     Assertion.verityNotContain(json.loads(rs1)['data']['record'], del_role_name)
     for record in json.loads(rs1)['data']['record']:
         Assertion.verityContain(record['count'], str(FinanceSql.get_role_count(record['id'])))