Skip to content

Commit

Permalink
test: update test cases (milvus-io#36878)
Browse files Browse the repository at this point in the history
Signed-off-by: nico <[email protected]>
  • Loading branch information
NicoYuan1986 authored Oct 15, 2024
1 parent e43af16 commit 2291d0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/python_client/testcases/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions tests/python_client/testcases/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2291d0c

Please sign in to comment.