test: update test cases (#36878)

Signed-off-by: nico <cheng.yuan@zilliz.com>
pull/36880/head
nico 2024-10-15 19:13:24 +08:00 committed by GitHub
parent e43af16e93
commit 2291d0c9f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -3136,7 +3136,8 @@ class TestDescribeCollection(TestcaseBase):
{'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)

View File

@ -184,6 +184,8 @@ class TestCollectionSearchInvalid(TestcaseBase):
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