mirror of https://github.com/milvus-io/milvus.git
enhance: update pymilvus version and test case (#29294)
pr: #29267 Signed-off-by: nico <cheng.yuan@zilliz.com>pull/29333/head
parent
cd9e3c4837
commit
f1ed04bee7
|
@ -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.3.3.post1.dev8
|
||||
pymilvus==2.3.5rc5
|
||||
pytest-rerunfailures==9.1.1
|
||||
git+https://github.com/Projectplace/pytest-tags
|
||||
ndg-httpsclient
|
||||
|
|
|
@ -339,6 +339,7 @@ class TestCollectionSearchInvalid(TestcaseBase):
|
|||
if index == invalid_search_param["index_type"]:
|
||||
search_params = {"metric_type": "L2",
|
||||
"params": invalid_search_param["search_params"]}
|
||||
log.info("invalid search params: {}".format(search_params))
|
||||
collection_w.search(vectors[:default_nq], default_search_field,
|
||||
search_params, default_limit,
|
||||
default_search_exp,
|
||||
|
@ -2658,7 +2659,7 @@ class TestCollectionSearch(TestcaseBase):
|
|||
@pytest.mark.tags(CaseLabel.L2)
|
||||
@pytest.mark.parametrize("partition_names",
|
||||
[["(.*)"], ["search(.*)"]])
|
||||
def test_search_index_partitions_fuzzy(self, nb, nq, dim, partition_names, auto_id, _async, enable_dynamic_field):
|
||||
def test_search_index_partitions_fuzzy(self, nb, nq, dim, partition_names, auto_id, enable_dynamic_field):
|
||||
"""
|
||||
target: test search from partitions
|
||||
method: search from partitions with fuzzy
|
||||
|
@ -2691,12 +2692,10 @@ class TestCollectionSearch(TestcaseBase):
|
|||
limit_check = par[1].num_entities
|
||||
collection_w.search(vectors[:nq], default_search_field,
|
||||
search_params, limit, default_search_exp,
|
||||
partition_names, _async=_async,
|
||||
check_task=CheckTasks.check_search_results,
|
||||
check_items={"nq": nq,
|
||||
"ids": insert_ids,
|
||||
"limit": limit_check,
|
||||
"_async": _async})
|
||||
partition_names,
|
||||
check_task=CheckTasks.err_res,
|
||||
check_items={ct.err_code: 65535,
|
||||
ct.err_msg: "partition name %s not found" % partition_names})
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L2)
|
||||
def test_search_index_partition_empty(self, nq, dim, auto_id, _async):
|
||||
|
|
Loading…
Reference in New Issue