[skip ci] Add comment to load case (#8719)

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
This commit is contained in:
ThreadDao 2021-09-27 20:56:10 +08:00 committed by GitHub
parent 06f13a29bc
commit b077584339
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2718,6 +2718,11 @@ class TestLoadCollection:
@pytest.mark.tags(CaseLabel.L2)
def test_load_collection_repeatedly(self, connect, collection):
"""
target: test load collection repeatedly
method: load collection twice
expected: No exception
"""
result = connect.insert(collection, cons.default_entities)
assert len(result.primary_keys) == default_nb
connect.flush([collection])
@ -3002,6 +3007,11 @@ class TestLoadCollectionInvalid(object):
@pytest.mark.tags(CaseLabel.L2)
def test_release_collection_with_invalid_collection_name(self, connect, get_collection_name):
"""
target: test release invalid collection
method: release collection with invalid name
expected: raise exception
"""
collection_name = get_collection_name
with pytest.raises(Exception) as e:
connect.release_collection(collection_name)