From e6c21d86ce636abe649de14bbc18741d568d0f69 Mon Sep 17 00:00:00 2001 From: del-zhenwu <56623710+del-zhenwu@users.noreply.github.com> Date: Sat, 26 Jun 2021 20:50:12 +0800 Subject: [PATCH] enable the fixed query cases (#6126) * enable the fixed query cases Signed-off-by: del-zhenwu * enable the fixed query cases Signed-off-by: del-zhenwu * update index cases Signed-off-by: del-zhenwu * Merge from master Signed-off-by: zhenwu --- tests/python_test/entity/test_query.py | 2 -- tests20/python_client/testcases/test_index.py | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/python_test/entity/test_query.py b/tests/python_test/entity/test_query.py index c82acfec99..21e820769e 100644 --- a/tests/python_test/entity/test_query.py +++ b/tests/python_test/entity/test_query.py @@ -140,7 +140,6 @@ class TestQueryBase: with pytest.raises(Exception): connect.query(collection_name, default_term_expr) - @pytest.mark.xfail(reason="#6035") def test_query_after_index(self, connect, collection, get_simple_index): """ target: test query after creating index @@ -185,7 +184,6 @@ class TestQueryBase: # not support # ut.assert_equal_vector(res[index][ut.default_float_vec_field_name], entities[2]["values"][index]) - @pytest.mark.xfail(reason="#6053") def test_query_empty_collection(self, connect, collection): """ target: test query empty collection diff --git a/tests20/python_client/testcases/test_index.py b/tests20/python_client/testcases/test_index.py index c60eca5cc0..0da1ab683c 100644 --- a/tests20/python_client/testcases/test_index.py +++ b/tests20/python_client/testcases/test_index.py @@ -91,8 +91,9 @@ class TestIndexParams(TestcaseBase): self.index_wrap.init_index(collection_w.collection, f_name, default_index_params, check_task=CheckTasks.err_res, check_items={"err_code": 1, "err_msg": "CreateIndex failed"}) + # TODO: update eror msg @pytest.mark.tags(CaseLabel.L1) - def test_index_type_invalid(self, get_invalid_index_type): + def _test_index_type_invalid(self, get_invalid_index_type): """ target: test index with error index type method: input invalid index type