forked from milvus-io/pymilvus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add util function to drop_collection (milvus-io#658)
- Only expose `connections` and `Connections` - Mend tests - Add docs for drop_collections Resolves: milvus-io#652, milvus-io#654 Signed-off-by: XuanYang-cn <[email protected]>
- Loading branch information
1 parent
f3fc8e8
commit c8f6b80
Showing
14 changed files
with
94 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
import pytest | ||
from utils import * | ||
from pymilvus_orm.utility import * | ||
from pymilvus import utility | ||
|
||
|
||
class TestCollectionSchema: | ||
def test_loading_progress(self): | ||
loading_progress(gen_collection_name(), [gen_partition_name()]) | ||
utility.loading_progress(gen_collection_name(), [gen_partition_name()]) | ||
|
||
def test_wait_for_loading_complete(self): | ||
wait_for_loading_complete(gen_collection_name(), [gen_partition_name()]) | ||
utility.wait_for_loading_complete(gen_collection_name(), [gen_partition_name()]) | ||
|
||
def test_index_building_progress(self): | ||
index_building_progress(gen_collection_name(), gen_index_name()) | ||
utility.index_building_progress(gen_collection_name(), gen_index_name()) | ||
|
||
def test_wait_for_index_building_complete(self): | ||
wait_for_index_building_complete(gen_collection_name(), gen_index_name()) | ||
utility.wait_for_index_building_complete(gen_collection_name(), gen_index_name()) | ||
|
||
def test_has_collection(self): | ||
assert has_collection(gen_collection_name()) is False | ||
assert utility.has_collection(gen_collection_name()) is False | ||
|
||
def test_has_partition(self): | ||
with pytest.raises(BaseException): | ||
has_partition(gen_collection_name(), gen_partition_name()) | ||
utility.has_partition(gen_collection_name(), gen_partition_name()) | ||
|
||
def test_drop_collection(self): | ||
with pytest.raises(BaseException): | ||
utility.drop_collection(gen_collection_name()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters