Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
1c87e216
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,发现更多精彩内容 >>
未验证
提交
1c87e216
编写于
1月 31, 2023
作者:
N
NicoYuan1986
提交者:
GitHub
1月 31, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update pymilvus version and modify some test cases (#21868)
Signed-off-by:
N
nico
<
cheng.yuan@zilliz.com
>
上级
8af2aebb
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
8 deletion
+5
-8
tests/python_client/requirements.txt
tests/python_client/requirements.txt
+1
-1
tests/python_client/testcases/test_compaction.py
tests/python_client/testcases/test_compaction.py
+2
-1
tests/python_client/testcases/test_query.py
tests/python_client/testcases/test_query.py
+2
-2
tests/python_client/testcases/test_search.py
tests/python_client/testcases/test_search.py
+0
-4
未找到文件。
tests/python_client/requirements.txt
浏览文件 @
1c87e216
...
...
@@ -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.0.dev2
4
pymilvus==2.3.0.dev2
6
pytest-rerunfailures==9.1.1
git+https://github.com/Projectplace/pytest-tags
ndg-httpsclient
...
...
tests/python_client/testcases/test_compaction.py
浏览文件 @
1c87e216
...
...
@@ -1290,7 +1290,8 @@ class TestCompactionOperation(TestcaseBase):
replicas
=
collection_w
.
get_replicas
()[
0
]
replica_num
=
len
(
replicas
.
groups
)
seg_info
=
self
.
utility_wrap
.
get_query_segment_info
(
collection_w
.
name
)[
0
]
assert
len
(
seg_info
)
!=
1
*
replica_num
if
not
(
len
(
seg_info
)
==
1
*
replica_num
or
len
(
seg_info
)
==
2
*
replica_num
):
assert
False
@
pytest
.
mark
.
tags
(
CaseLabel
.
L2
)
def
test_compact_during_search
(
self
):
...
...
tests/python_client/testcases/test_query.py
浏览文件 @
1c87e216
...
...
@@ -1036,7 +1036,6 @@ class TestQueryParams(TestcaseBase):
assert
query_res
==
res
@
pytest
.
mark
.
tags
(
CaseLabel
.
L2
)
@
pytest
.
mark
.
skip
(
"issue #21223"
)
@
pytest
.
mark
.
parametrize
(
"offset"
,
[
3000
,
5000
])
def
test_query_pagination_with_offset_over_num_entities
(
self
,
offset
):
"""
...
...
@@ -1049,7 +1048,8 @@ class TestQueryParams(TestcaseBase):
int_values
=
vectors
[
0
][
ct
.
default_int64_field_name
].
values
.
tolist
()
pos
=
10
term_expr
=
f
'
{
ct
.
default_int64_field_name
}
in
{
int_values
[
10
:
pos
+
10
]
}
'
collection_w
.
query
(
term_expr
,
offset
=
offset
,
limit
=
10
)
res
=
collection_w
.
query
(
term_expr
,
offset
=
offset
,
limit
=
10
)[
0
]
assert
len
(
res
)
==
0
@
pytest
.
mark
.
tags
(
CaseLabel
.
L2
)
@
pytest
.
mark
.
parametrize
(
"limit"
,
[
"12 s"
,
" "
,
[
0
,
1
],
{
2
}])
...
...
tests/python_client/testcases/test_search.py
浏览文件 @
1c87e216
...
...
@@ -3798,7 +3798,6 @@ class TestsearchPagination(TestcaseBase):
@
pytest
.
mark
.
tags
(
CaseLabel
.
L1
)
@
pytest
.
mark
.
parametrize
(
"limit"
,
[
10
,
20
])
@
pytest
.
mark
.
skip
(
"issue #21444"
)
def
test_search_with_pagination
(
self
,
offset
,
auto_id
,
limit
,
_async
):
"""
target: test search with pagination
...
...
@@ -3833,7 +3832,6 @@ class TestsearchPagination(TestcaseBase):
assert
set
(
search_res
[
0
].
ids
)
==
set
(
res
[
0
].
ids
[
offset
:])
@
pytest
.
mark
.
tags
(
CaseLabel
.
L1
)
@
pytest
.
mark
.
skip
(
"issue #21444"
)
def
test_search_string_with_pagination
(
self
,
offset
,
auto_id
,
_async
):
"""
target: test search string with pagination
...
...
@@ -3997,7 +3995,6 @@ class TestsearchPagination(TestcaseBase):
assert
set
(
search_res
[
0
].
ids
)
==
set
(
res
[
0
].
ids
[
offset
:])
@
pytest
.
mark
.
tags
(
CaseLabel
.
L2
)
@
pytest
.
mark
.
skip
(
"issue #21444"
)
def
test_search_pagination_with_index_partition
(
self
,
offset
,
auto_id
,
_async
):
"""
target: test search pagination with index and partition
...
...
@@ -4161,7 +4158,6 @@ class TestsearchPagination(TestcaseBase):
@
pytest
.
mark
.
parametrize
(
"index, params"
,
zip
(
ct
.
all_index_types
[:
7
],
ct
.
default_index_params
[:
7
]))
@
pytest
.
mark
.
skip
(
"issue #21444"
)
def
test_search_pagination_after_different_index
(
self
,
index
,
params
,
auto_id
,
offset
,
_async
):
"""
target: test search pagination after different index
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录