def test_atom_group_by_cite(self): """ 标准插件引用次数 :return: """ self.postRequest.path = '/analysis/query_atom_by_group/' self.postRequest.POST['group_by'] = AE.atom_cite response = query_atom_by_group(self.postRequest) response_dict = json.loads(response.content) if response_dict["data"]["total"] == 0: self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_NO_DATA_PARAMS), None) else: self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_CATEGORY_AND_BUSINESS_PARAMS), None)
def test_atom_group_by_template(self): """ 标准插件流程详情 :return: """ self.postRequest.path = '/analysis/query_atom_by_group/' self.postRequest.POST['group_by'] = AE.atom_template response = query_atom_by_group(self.postRequest) response_dict = json.loads(response.content) if response_dict["data"]["total"] == 0: self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_NO_DATA_PARAMS), None) else: self.assertEqual(jsonschema.validate(response_dict, ANALYSIS_ATOM_TEMPLATE_PARAMS), None)