[skip ci] Add comment to collection cases (#8715)

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
pull/8716/head
ThreadDao 2021-09-27 19:58:03 +08:00 committed by GitHub
parent 86496efa7e
commit cab36c9cac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -2675,6 +2675,11 @@ class TestLoadCollection:
@pytest.mark.tags(CaseLabel.L2)
def test_release_collection_not_existed(self, connect, collection):
"""
target: test release a not existed collection
method: release with a not existed collection anme
expected: raise exception
"""
collection_name = gen_unique_str(uid_load)
try:
connect.release_collection(collection_name)
@ -2698,6 +2703,12 @@ class TestLoadCollection:
@pytest.mark.tags(CaseLabel.L0)
def test_load_collection_after_load_release(self, connect, collection):
"""
target: test load collection after load and release
method: 1.load and release collection after entities flushed
2.re-load collection
expected: No exception
"""
result = connect.insert(collection, cons.default_entities)
assert len(result.primary_keys) == default_nb
connect.flush([collection])