From d9ea9519aa6428e63523d7dd9ec3c1152e56bd03 Mon Sep 17 00:00:00 2001 From: ThreadDao Date: Fri, 17 Dec 2021 18:54:05 +0800 Subject: [PATCH] Optimize for fill the garagraph (#13614) Signed-off-by: ThreadDao --- tests/python_client/testcases/test_utility.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/python_client/testcases/test_utility.py b/tests/python_client/testcases/test_utility.py index 41b2858f0f..9e835979d9 100644 --- a/tests/python_client/testcases/test_utility.py +++ b/tests/python_client/testcases/test_utility.py @@ -76,8 +76,8 @@ class TestUtilityParams(TestcaseBase): c_name, check_task=CheckTasks.err_res, check_items={ct.err_code: 1, ct.err_msg: "Invalid collection name"}) - # elif not isinstance(c_name, str): - # self.utility_wrap.has_collection(c_name, check_task=CheckTasks.err_res, check_items={ct.err_code: 1, ct.err_msg: "illegal"}) + # elif not isinstance(c_name, str): self.utility_wrap.has_collection(c_name, check_task=CheckTasks.err_res, + # check_items={ct.err_code: 1, ct.err_msg: "illegal"}) @pytest.mark.tags(CaseLabel.L2) def test_has_partition_collection_name_invalid(self, get_invalid_collection_name): @@ -141,11 +141,9 @@ class TestUtilityParams(TestcaseBase): expected: raise exception """ pass - # self._connect() - # c_name = get_invalid_collection_name - # ut = ApiUtilityWrapper() - # 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"}) + # self._connect() c_name = get_invalid_collection_name ut = ApiUtilityWrapper() 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 @pytest.mark.tags(CaseLabel.L1)