From 44c848ffdb516fa17e7e9b088f161e2e428fad17 Mon Sep 17 00:00:00 2001 From: ThreadDao Date: Sat, 2 Oct 2021 18:05:56 +0800 Subject: [PATCH] [skip ci] Add comment to query result check (#9079) Signed-off-by: ThreadDao --- tests/python_client/check/func_check.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/python_client/check/func_check.py b/tests/python_client/check/func_check.py index 4f80588f62..8b4719b2b7 100644 --- a/tests/python_client/check/func_check.py +++ b/tests/python_client/check/func_check.py @@ -217,6 +217,20 @@ class ResponseChecker: @staticmethod def check_query_results(query_res, func_name, check_items): + """ + According to the check_items to check actual query result, which return from func_name. + + :param: query_res: A list that contains all results + :type: list + + :param func_name: Query API name + :type func_name: str + + :param check_items: The items expected to be checked, including exp_res, with_vec + The type of exp_res value is as same as query_res + The type of with_vec value is bool, True value means check vector field, False otherwise + :type check_items: dict + """ if func_name != 'query': log.warning("The function name is {} rather than {}".format(func_name, "query")) if not isinstance(query_res, list):