mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add comments for collection test case (#8381)
Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>pull/8397/head
parent
9d567c5a36
commit
04ac27b552
|
@ -2644,6 +2644,11 @@ class TestLoadCollection:
|
||||||
|
|
||||||
@pytest.mark.tags(CaseLabel.L2)
|
@pytest.mark.tags(CaseLabel.L2)
|
||||||
def test_load_collection_not_existed(self, connect, collection):
|
def test_load_collection_not_existed(self, connect, collection):
|
||||||
|
"""
|
||||||
|
target: test load invalid collection
|
||||||
|
method: load not existed collection
|
||||||
|
expected: raise exception
|
||||||
|
"""
|
||||||
collection_name = gen_unique_str(uid_load)
|
collection_name = gen_unique_str(uid_load)
|
||||||
try:
|
try:
|
||||||
connect.load_collection(collection_name)
|
connect.load_collection(collection_name)
|
||||||
|
@ -2668,8 +2673,8 @@ class TestLoadCollection:
|
||||||
def test_release_collection_not_load(self, connect, collection):
|
def test_release_collection_not_load(self, connect, collection):
|
||||||
"""
|
"""
|
||||||
target: test release collection without load
|
target: test release collection without load
|
||||||
method:
|
method: release collection without load
|
||||||
expected: raise exception
|
expected: release successfully
|
||||||
"""
|
"""
|
||||||
result = connect.insert(collection, default_entities)
|
result = connect.insert(collection, default_entities)
|
||||||
assert len(result.primary_keys) == default_nb
|
assert len(result.primary_keys) == default_nb
|
||||||
|
|
Loading…
Reference in New Issue