From 652b866587123bbdb2e8080b06c992a9b9219307 Mon Sep 17 00:00:00 2001 From: nico <109071306+NicoYuan1986@users.noreply.github.com> Date: Wed, 13 Mar 2024 19:05:11 +0800 Subject: [PATCH] test: update test cases (#31225) Signed-off-by: nico --- tests/python_client/common/common_func.py | 2 +- tests/python_client/requirements.txt | 2 +- tests/python_client/testcases/test_high_level_api.py | 1 - tests/python_client/testcases/test_search.py | 2 -- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/python_client/common/common_func.py b/tests/python_client/common/common_func.py index fb48236b91..49f557a467 100644 --- a/tests/python_client/common/common_func.py +++ b/tests/python_client/common/common_func.py @@ -1098,7 +1098,7 @@ def gen_invalid_search_params_type(): for index_type in ct.all_index_types: if index_type == "FLAT": continue - search_params.append({"index_type": index_type, "search_params": {"invalid_key": invalid_search_key}}) + # search_params.append({"index_type": index_type, "search_params": {"invalid_key": invalid_search_key}}) if index_type in ["IVF_FLAT", "IVF_SQ8", "IVF_PQ"]: for nprobe in ct.get_invalid_ints: ivf_search_params = {"index_type": index_type, "search_params": {"nprobe": nprobe}} diff --git a/tests/python_client/requirements.txt b/tests/python_client/requirements.txt index 9b2fced1ab..0b84ad5741 100644 --- a/tests/python_client/requirements.txt +++ b/tests/python_client/requirements.txt @@ -12,7 +12,7 @@ allure-pytest==2.7.0 pytest-print==0.2.1 pytest-level==0.1.1 pytest-xdist==2.5.0 -pymilvus==2.4.0rc42 +pymilvus==2.4.0rc53 pytest-rerunfailures==9.1.1 git+https://github.com/Projectplace/pytest-tags ndg-httpsclient diff --git a/tests/python_client/testcases/test_high_level_api.py b/tests/python_client/testcases/test_high_level_api.py index e321627b5e..2e6b1a6652 100644 --- a/tests/python_client/testcases/test_high_level_api.py +++ b/tests/python_client/testcases/test_high_level_api.py @@ -130,7 +130,6 @@ class TestHighLevelApi(TestcaseBase): check_task=CheckTasks.err_res, check_items=error) @pytest.mark.tags(CaseLabel.L2) - @pytest.mark.skip("https://github.com/milvus-io/milvus/issues/29880") def test_high_level_search_not_consistent_metric_type(self, metric_type): """ target: test search with inconsistent metric type (default is IP) with that of index diff --git a/tests/python_client/testcases/test_search.py b/tests/python_client/testcases/test_search.py index 60bbdeb523..f36387a7ac 100644 --- a/tests/python_client/testcases/test_search.py +++ b/tests/python_client/testcases/test_search.py @@ -340,7 +340,6 @@ class TestCollectionSearchInvalid(TestcaseBase): "[expected=COSINE][actual=L2]"}) @pytest.mark.tags(CaseLabel.L2) - @pytest.mark.skip("issue #29020") @pytest.mark.parametrize("index, params", zip(ct.all_index_types[:7], ct.default_index_params[:7])) @@ -10391,7 +10390,6 @@ class TestSearchGroupBy(TestcaseBase): pass -@pytest.mark.skip(reason="debug") class TestCollectionHybridSearchValid(TestcaseBase): """ Test case of search interface """