mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
test: Update pymilvus version to 2.5.0rc8 (#32111)
Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
parent
dc5ea6f17c
commit
4bf32bbc87
@ -258,8 +258,7 @@ class TestMilvusClientInsertInvalid(TestcaseBase):
|
||||
rng = np.random.default_rng(seed=19530)
|
||||
rows = [{default_primary_key_field_name: i, default_vector_field_name: list(rng.random((1, default_dim+1))[0]),
|
||||
default_float_field_name: i * 1.0, default_string_field_name: str(i)} for i in range(default_nb)]
|
||||
error = {ct.err_code: 1, ct.err_msg: f"Collection field dim is {default_dim}, "
|
||||
f"but entities field dim is {default_dim+1}"}
|
||||
error = {ct.err_code: 65536, ct.err_msg: f"of float data should divide the dim({default_dim})"}
|
||||
client_w.insert(client, collection_name, data= rows,
|
||||
check_task=CheckTasks.err_res, check_items=error)
|
||||
|
||||
@ -730,8 +729,7 @@ class TestMilvusClientUpsertInvalid(TestcaseBase):
|
||||
rng = np.random.default_rng(seed=19530)
|
||||
rows = [{default_primary_key_field_name: i, default_vector_field_name: list(rng.random((1, default_dim+1))[0]),
|
||||
default_float_field_name: i * 1.0, default_string_field_name: str(i)} for i in range(default_nb)]
|
||||
error = {ct.err_code: 1, ct.err_msg: f"Collection field dim is {default_dim}, "
|
||||
f"but entities field dim is {default_dim+1}"}
|
||||
error = {ct.err_code: 65536, ct.err_msg: f"of float data should divide the dim({default_dim})"}
|
||||
client_w.upsert(client, collection_name, data= rows,
|
||||
check_task=CheckTasks.err_res, check_items=error)
|
||||
|
||||
@ -994,4 +992,4 @@ class TestMilvusClientUpsertValid(TestcaseBase):
|
||||
client_w.release_partitions(client, collection_name, partition_name)
|
||||
client_w.drop_partition(client, collection_name, partition_name)
|
||||
if client_w.has_collection(client, collection_name)[0]:
|
||||
client_w.drop_collection(client, collection_name)
|
||||
client_w.drop_collection(client, collection_name)
|
||||
|
||||
@ -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.5.0rc4
|
||||
pymilvus==2.5.0rc8
|
||||
pytest-rerunfailures==9.1.1
|
||||
git+https://github.com/Projectplace/pytest-tags
|
||||
ndg-httpsclient
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user