[skip ci] Add comment to collection properities check (#9078)

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
pull/9080/head
ThreadDao 2021-10-02 17:05:56 +08:00 committed by GitHub
parent dcb279457f
commit 528656d101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -117,6 +117,17 @@ class ResponseChecker:
@staticmethod
def check_collection_property(res, func_name, check_items):
"""
According to the check_items to check collection properties of res, which return from func_name
:param res: actual response of init collection
:type res: Collection
:param func_name: init collection API
:type func_name: str
:param check_items: which items expected to be checked, including name, schema, num_entities, primary
:type check_items: dict, {check_key: expected_value}
"""
exp_func_name = "init_collection"
exp_func_name_2 = "construct_from_dataframe"
if func_name != exp_func_name and func_name != exp_func_name_2: