From 2570176fb27767cdc61c041fb24f307c40354583 Mon Sep 17 00:00:00 2001 From: NicoYuan1986 <109071306+NicoYuan1986@users.noreply.github.com> Date: Thu, 1 Sep 2022 17:05:07 +0800 Subject: [PATCH] Remove label of cases that have been solved (#18912) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “nico” Signed-off-by: “nico” --- tests/python_client/testcases/test_collection.py | 1 - tests/python_client/testcases/test_search.py | 7 ++----- tests/python_client/testcases/test_utility.py | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/python_client/testcases/test_collection.py b/tests/python_client/testcases/test_collection.py index 08387ad272..17a3b02d18 100644 --- a/tests/python_client/testcases/test_collection.py +++ b/tests/python_client/testcases/test_collection.py @@ -788,7 +788,6 @@ class TestCollectionParams(TestcaseBase): self.collection_wrap.init_collection(c_name, schema=schema, check_task=CheckTasks.err_res, check_items=error) @pytest.mark.tags(CaseLabel.L2) - @pytest.mark.xfail(reason="exception not Milvus Exception") def test_collection_vector_invalid_dim(self, get_invalid_dim): """ target: test collection with invalid dimension diff --git a/tests/python_client/testcases/test_search.py b/tests/python_client/testcases/test_search.py index 2a4a323088..b7860c9f1d 100644 --- a/tests/python_client/testcases/test_search.py +++ b/tests/python_client/testcases/test_search.py @@ -1334,7 +1334,6 @@ class TestCollectionSearch(TestcaseBase): "_async": _async}) @pytest.mark.tags(CaseLabel.L2) - @pytest.mark.skip(reason="issue #18479") @pytest.mark.parametrize("index, params", zip(ct.all_index_types[:9], ct.default_index_params[:9])) @@ -1351,11 +1350,9 @@ class TestCollectionSearch(TestcaseBase): dim=min_dim, is_index=True)[0:5] # 2. create index and load if params.get("m"): - if (min_dim % params["m"]) != 0: - params["m"] = min_dim // 4 + params["m"] = min_dim if params.get("PQM"): - if (min_dim % params["PQM"]) != 0: - params["PQM"] = min_dim // 4 + params["PQM"] = min_dim default_index = {"index_type": index, "params": params, "metric_type": "L2"} collection_w.create_index("float_vector", default_index) collection_w.load() diff --git a/tests/python_client/testcases/test_utility.py b/tests/python_client/testcases/test_utility.py index 0cf50f3516..9d69fe51f5 100644 --- a/tests/python_client/testcases/test_utility.py +++ b/tests/python_client/testcases/test_utility.py @@ -232,7 +232,6 @@ class TestUtilityParams(TestcaseBase): self.utility_wrap.loading_progress("not_existed_name", check_task=CheckTasks.err_res, check_items=error) @pytest.mark.tags(CaseLabel.L2) - @pytest.mark.xfail(reason="pymilvus issue #677") def test_loading_progress_invalid_partition_names(self, get_invalid_partition_names): """ target: test loading progress with invalid partition names