From d39ffba5d169b2855491caa86e6bdbeeb1a6a8bf Mon Sep 17 00:00:00 2001 From: nico <109071306+NicoYuan1986@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:30:15 +0800 Subject: [PATCH] update pymilvus version and some cases (#28066) Signed-off-by: nico --- tests/python_client/requirements.txt | 2 +- tests/python_client/testcases/test_delete.py | 2 +- tests/python_client/testcases/test_search.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/python_client/requirements.txt b/tests/python_client/requirements.txt index c619174fd2..68e3370879 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.3.1.post1.dev22 +pymilvus==2.3.2.post1.dev1 pytest-rerunfailures==9.1.1 git+https://github.com/Projectplace/pytest-tags ndg-httpsclient diff --git a/tests/python_client/testcases/test_delete.py b/tests/python_client/testcases/test_delete.py index 19fdc45566..99c9b4f538 100644 --- a/tests/python_client/testcases/test_delete.py +++ b/tests/python_client/testcases/test_delete.py @@ -2009,7 +2009,7 @@ class TestDeleteComplexExpr(TestcaseBase): collection_w = self.init_collection_general(prefix, False)[0] # delete - error = {ct.err_code: 1, ct.err_msg: "collection not loaded: unrecoverable error"} + error = {ct.err_code: 101, ct.err_msg: "collection not loaded"} collection_w.delete(expr="int64 >= 0", check_task=CheckTasks.err_res, check_items=error) @pytest.mark.tags(CaseLabel.L1) diff --git a/tests/python_client/testcases/test_search.py b/tests/python_client/testcases/test_search.py index 5ca5d5fd84..8c2d5482cc 100644 --- a/tests/python_client/testcases/test_search.py +++ b/tests/python_client/testcases/test_search.py @@ -108,7 +108,7 @@ class TestCollectionSearchInvalid(TestcaseBase): def get_invalid_expr_value(self, request): if not isinstance(request.param, str): pytest.skip("expression value only support string") - if request.param == "": + if request.param in ["", " "]: pytest.skip("empty field is valid") yield request.param @@ -483,6 +483,7 @@ class TestCollectionSearchInvalid(TestcaseBase): invalid_search_expr = get_invalid_expr_value log.info("test_search_param_invalid_expr_value: searching with " "invalid expr: %s" % invalid_search_expr) + collection_w.load() collection_w.search(vectors[:default_nq], default_search_field, default_search_params, default_limit, invalid_search_expr, check_task=CheckTasks.err_res,