Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
32650570
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
32650570
编写于
9月 07, 2021
作者:
B
binbin
提交者:
GitHub
9月 07, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Enable and modify test case (#7515)
Signed-off-by:
N
Binbin Lv
<
binbin.lv@zilliz.com
>
上级
b7103357
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
12 deletion
+8
-12
tests/python_client/testcases/entity/test_insert.py
tests/python_client/testcases/entity/test_insert.py
+0
-1
tests/python_client/testcases/test_search_20.py
tests/python_client/testcases/test_search_20.py
+8
-11
未找到文件。
tests/python_client/testcases/entity/test_insert.py
浏览文件 @
32650570
...
...
@@ -612,7 +612,6 @@ class TestInsertBinary:
assert
stats
[
row_count
]
==
default_nb
@
pytest
.
mark
.
tags
(
CaseLabel
.
L2
)
@
pytest
.
mark
.
skip
(
reason
=
"issue 7027"
)
def
test_insert_binary_multi_times
(
self
,
connect
,
binary_collection
):
'''
target: test insert entities multi times and final flush
...
...
tests/python_client/testcases/test_search_20.py
浏览文件 @
32650570
...
...
@@ -515,7 +515,7 @@ class TestCollectionSearchInvalid(TestcaseBase):
@
pytest
.
mark
.
parametrize
(
"index, params"
,
zip
(
ct
.
all_index_types
[:
9
],
ct
.
default_index_params
[:
9
]))
def
test_search_different_index_invalid_params
(
self
,
nq
,
dim
,
index
,
params
,
auto_id
,
_async
):
def
test_search_different_index_invalid_params
(
self
,
index
,
params
):
"""
target: test search with different index
method: test search with different index
...
...
@@ -524,13 +524,11 @@ class TestCollectionSearchInvalid(TestcaseBase):
# 1. initialize with data
collection_w
,
_
,
_
,
insert_ids
=
self
.
init_collection_general
(
prefix
,
True
,
5000
,
partition_num
=
1
,
auto_id
=
auto_id
,
dim
=
dim
,
is_index
=
True
)
vectors
=
[[
random
.
random
()
for
_
in
range
(
dim
)]
for
_
in
range
(
nq
)]
is_index
=
True
)
# 2. create different index
if
params
.
get
(
"m"
):
if
(
dim
%
params
[
"m"
])
!=
0
:
params
[
"m"
]
=
dim
//
4
if
(
d
efault_d
im
%
params
[
"m"
])
!=
0
:
params
[
"m"
]
=
d
efault_d
im
//
4
log
.
info
(
"test_search_different_index_invalid_params: Creating index-%s"
%
index
)
default_index
=
{
"index_type"
:
index
,
"params"
:
params
,
"metric_type"
:
"L2"
}
collection_w
.
create_index
(
"float_vector"
,
default_index
)
...
...
@@ -538,14 +536,13 @@ class TestCollectionSearchInvalid(TestcaseBase):
collection_w
.
load
()
# 3. search
log
.
info
(
"test_search_different_index_invalid_params: Searching after creating index-%s"
%
index
)
collection_w
.
search
(
vectors
[:
nq
]
,
default_search_field
,
collection_w
.
search
(
vectors
,
default_search_field
,
default_search_params
,
default_limit
,
default_search_exp
,
_async
=
_async
,
default_search_exp
,
check_task
=
CheckTasks
.
check_search_results
,
check_items
=
{
"nq"
:
nq
,
check_items
=
{
"nq"
:
default_
nq
,
"ids"
:
insert_ids
,
"limit"
:
default_limit
,
"_async"
:
_async
})
"limit"
:
default_limit
})
@
pytest
.
mark
.
tags
(
CaseLabel
.
L1
)
def
test_search_index_partition_not_existed
(
self
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录