Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
84f950bc
M
milvus
项目概览
milvus
/
milvus
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
84f950bc
编写于
4月 01, 2021
作者:
D
del-zhenwu
提交者:
yefu.chen
4月 01, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove collection after case run finished in test cases
Signed-off-by:
N
del-zhenwu
<
zhenxiang.li@zilliz.com
>
上级
d7f5c6b1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
0 deletion
+13
-0
tests/python_test/collection/test_collection_count.py
tests/python_test/collection/test_collection_count.py
+3
-0
tests/python_test/collection/test_list_collections.py
tests/python_test/collection/test_list_collections.py
+4
-0
tests/python_test/entity/test_insert.py
tests/python_test/entity/test_insert.py
+2
-0
tests/python_test/entity/test_search.py
tests/python_test/entity/test_search.py
+4
-0
未找到文件。
tests/python_test/collection/test_collection_count.py
浏览文件 @
84f950bc
...
...
@@ -447,6 +447,7 @@ class TestCollectionMultiCollections:
for
i
in
range
(
collection_num
):
stats
=
connect
.
get_collection_stats
(
collection_list
[
i
])
assert
stats
[
row_count
]
==
insert_count
connect
.
drop_collection
(
collection_list
[
i
])
@
pytest
.
mark
.
level
(
2
)
def
test_collection_count_multi_collections_binary
(
self
,
connect
,
binary_collection
,
insert_count
):
...
...
@@ -469,6 +470,7 @@ class TestCollectionMultiCollections:
for
i
in
range
(
collection_num
):
stats
=
connect
.
get_collection_stats
(
collection_list
[
i
])
assert
stats
[
row_count
]
==
insert_count
connect
.
drop_collection
(
collection_list
[
i
])
@
pytest
.
mark
.
level
(
2
)
@
pytest
.
mark
.
tags
(
CaseLabel
.
tags_smoke
)
...
...
@@ -495,3 +497,4 @@ class TestCollectionMultiCollections:
for
i
in
range
(
collection_num
):
stats
=
connect
.
get_collection_stats
(
collection_list
[
i
])
assert
stats
[
row_count
]
==
default_nb
connect
.
drop_collection
(
collection_list
[
i
])
tests/python_test/collection/test_list_collections.py
浏览文件 @
84f950bc
...
...
@@ -29,10 +29,14 @@ class TestListCollections:
expected: True
'''
collection_num
=
50
collection_names
=
[]
for
i
in
range
(
collection_num
):
collection_name
=
gen_unique_str
(
uid
)
collection_names
.
append
(
collection_name
)
connect
.
create_collection
(
collection_name
,
default_fields
)
assert
collection_name
in
connect
.
list_collections
()
for
i
in
range
(
collection_num
):
connect
.
drop_collection
(
collection_names
[
i
])
@
pytest
.
mark
.
level
(
2
)
def
test_list_collections_without_connection
(
self
,
dis_connect
):
...
...
tests/python_test/entity/test_insert.py
浏览文件 @
84f950bc
...
...
@@ -792,6 +792,8 @@ class TestInsertMultiCollections:
assert
len
(
ids
)
==
default_nb
stats
=
connect
.
get_collection_stats
(
collection_name
)
assert
stats
[
row_count
]
==
default_nb
for
i
in
range
(
collection_num
):
connect
.
drop_collection
(
collection_list
[
i
])
@
pytest
.
mark
.
timeout
(
ADD_TIMEOUT
)
@
pytest
.
mark
.
tags
(
CaseLabel
.
tags_smoke
)
...
...
tests/python_test/entity/test_search.py
浏览文件 @
84f950bc
...
...
@@ -914,9 +914,11 @@ class TestSearchBase:
num
=
10
top_k
=
10
nq
=
20
collection_names
=
[]
for
i
in
range
(
num
):
collection
=
gen_unique_str
(
uid
+
str
(
i
))
connect
.
create_collection
(
collection
,
default_fields
)
collection_names
.
append
(
collection
)
entities
,
ids
=
init_data
(
connect
,
collection
)
assert
len
(
ids
)
==
default_nb
query
,
vecs
=
gen_query_vectors
(
field_name
,
entities
,
top_k
,
nq
,
search_params
=
search_param
)
...
...
@@ -927,6 +929,8 @@ class TestSearchBase:
assert
check_id_result
(
res
[
i
],
ids
[
i
])
assert
res
[
i
].
_distances
[
0
]
<
epsilon
assert
res
[
i
].
_distances
[
1
]
>
epsilon
for
i
in
range
(
num
):
connect
.
drop_collection
(
collection_names
[
i
])
@
pytest
.
mark
.
skip
(
"r0.3-test"
)
def
_test_query_entities_with_field_less_than_top_k
(
self
,
connect
,
id_collection
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录