From 2291d0c9f52056ae1ed3c5fe9c40b35ef05f6a3c Mon Sep 17 00:00:00 2001 From: nico <109071306+NicoYuan1986@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:13:24 +0800 Subject: [PATCH] test: update test cases (#36878) Signed-off-by: nico --- tests/python_client/testcases/test_collection.py | 3 ++- tests/python_client/testcases/test_search.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/python_client/testcases/test_collection.py b/tests/python_client/testcases/test_collection.py index 843cc806d1f10..a737210eed1b7 100644 --- a/tests/python_client/testcases/test_collection.py +++ b/tests/python_client/testcases/test_collection.py @@ -3136,7 +3136,8 @@ def test_collection_describe(self): {'field_id': 103, 'name': 'json_field', 'description': '', 'type': 23, 'params': {}}, {'field_id': 104, 'name': 'float_vector', 'description': '', 'type': 101, 'params': {'dim': 128}} ], - 'aliases': [], 'consistency_level': 0, 'properties': {}, 'num_partitions': 1, 'enable_dynamic_field': False} + 'functions': [], 'aliases': [], 'consistency_level': 0, 'properties': {}, + 'num_partitions': 1, 'enable_dynamic_field': False} res = collection_w.describe()[0] del res['collection_id'] log.info(res) diff --git a/tests/python_client/testcases/test_search.py b/tests/python_client/testcases/test_search.py index fb0030b968310..a1dd1d8bba3fb 100644 --- a/tests/python_client/testcases/test_search.py +++ b/tests/python_client/testcases/test_search.py @@ -184,6 +184,8 @@ def test_search_param_invalid_vectors(self, get_invalid_vectors): method: search with invalid data expected: raise exception and report the error """ + if get_invalid_vectors in [[" "], ['a']]: + pytest.skip("['a'] and [' '] is valid now") # 1. initialize with data collection_w = self.init_collection_general(prefix, dim=32)[0] # 2. search with invalid field