Optimize for fill the garagraph (#13614)

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
This commit is contained in:
ThreadDao 2021-12-17 18:54:05 +08:00 committed by GitHub
parent 1e404d717a
commit d9ea9519aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,8 +76,8 @@ class TestUtilityParams(TestcaseBase):
c_name, c_name,
check_task=CheckTasks.err_res, check_task=CheckTasks.err_res,
check_items={ct.err_code: 1, ct.err_msg: "Invalid collection name"}) check_items={ct.err_code: 1, ct.err_msg: "Invalid collection name"})
# elif not isinstance(c_name, str): # elif not isinstance(c_name, str): self.utility_wrap.has_collection(c_name, check_task=CheckTasks.err_res,
# self.utility_wrap.has_collection(c_name, check_task=CheckTasks.err_res, check_items={ct.err_code: 1, ct.err_msg: "illegal"}) # check_items={ct.err_code: 1, ct.err_msg: "illegal"})
@pytest.mark.tags(CaseLabel.L2) @pytest.mark.tags(CaseLabel.L2)
def test_has_partition_collection_name_invalid(self, get_invalid_collection_name): def test_has_partition_collection_name_invalid(self, get_invalid_collection_name):
@ -141,11 +141,9 @@ class TestUtilityParams(TestcaseBase):
expected: raise exception expected: raise exception
""" """
pass pass
# self._connect() # self._connect() c_name = get_invalid_collection_name ut = ApiUtilityWrapper() if isinstance(c_name,
# c_name = get_invalid_collection_name # str) and c_name: ex, _ = ut.index_building_progress(c_name, check_items={ct.err_code: 1, ct.err_msg:
# ut = ApiUtilityWrapper() # "Invalid collection name"})
# if isinstance(c_name, str) and c_name:
# ex, _ = ut.index_building_progress(c_name, check_items={ct.err_code: 1, ct.err_msg: "Invalid collection name"})
# TODO: not support index name # TODO: not support index name
@pytest.mark.tags(CaseLabel.L1) @pytest.mark.tags(CaseLabel.L1)