mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
Rename old pymilvus utils to util_pymilvus (#13957)
Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
This commit is contained in:
parent
ac8ae914b4
commit
f7787d9f57
@ -1,6 +1,6 @@
|
||||
# constants for old pymilvus API test
|
||||
|
||||
import utils.utils as utils
|
||||
import utils.util_pymilvus as utils
|
||||
|
||||
default_fields = utils.gen_default_fields()
|
||||
default_binary_fields = utils.gen_binary_default_fields()
|
||||
|
@ -10,7 +10,7 @@ from utils.util_log import test_log as log
|
||||
from base.client_base import param_info
|
||||
from check.param_check import ip_check, number_check
|
||||
from config.log_config import log_config
|
||||
from utils.utils import get_milvus, gen_unique_str, gen_default_fields, gen_binary_default_fields
|
||||
from utils.util_pymilvus import get_milvus, gen_unique_str, gen_default_fields, gen_binary_default_fields
|
||||
|
||||
timeout = 60
|
||||
dimension = 128
|
||||
|
@ -3,7 +3,7 @@ import threading
|
||||
|
||||
import pytest
|
||||
from pymilvus import DataType, ParamError, BaseException
|
||||
from utils import utils as ut
|
||||
from utils import util_pymilvus as ut
|
||||
from common.constants import default_entity, default_entities, default_binary_entity, default_binary_entities, \
|
||||
default_fields
|
||||
from common.common_type import CaseLabel
|
||||
|
@ -3,7 +3,7 @@ import logging
|
||||
import pytest
|
||||
from pymilvus import IndexType
|
||||
|
||||
from utils.utils import get_milvus, gen_vectors, default_dim
|
||||
from utils.util_pymilvus import get_milvus, gen_vectors, default_dim
|
||||
from common.common_type import CaseLabel
|
||||
|
||||
|
||||
|
@ -6,7 +6,7 @@ import logging
|
||||
import json
|
||||
from multiprocessing import Pool, Process
|
||||
import pytest
|
||||
from utils.utils import get_milvus, restart_server, gen_entities, gen_unique_str, default_nb
|
||||
from utils.util_pymilvus import get_milvus, restart_server, gen_entities, gen_unique_str, default_nb
|
||||
from common.constants import default_fields, default_entities
|
||||
from common.common_type import CaseLabel
|
||||
|
||||
|
@ -8,7 +8,7 @@ from utils.util_log import test_log as log
|
||||
from common import common_func as cf
|
||||
from common import common_type as ct
|
||||
from common.common_type import CaseLabel, CheckTasks
|
||||
from utils.utils import *
|
||||
from utils.util_pymilvus import *
|
||||
from common import constants as cons
|
||||
|
||||
prefix = "collection"
|
||||
|
@ -3,7 +3,7 @@ import concurrent.futures
|
||||
from pymilvus import DefaultConfig, Milvus
|
||||
|
||||
from base.client_base import TestcaseBase
|
||||
from utils.utils import get_milvus, gen_invalid_ips, gen_invalid_ints, gen_invalid_uris
|
||||
from utils.util_pymilvus import get_milvus, gen_invalid_ips, gen_invalid_ints, gen_invalid_uris
|
||||
import common.common_type as ct
|
||||
import common.common_func as cf
|
||||
from common.code_mapping import ConnectionErrorMessage as cem
|
||||
|
@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
from utils.utils import *
|
||||
from utils.util_pymilvus import *
|
||||
from common.constants import default_entities
|
||||
from common.common_type import CaseLabel
|
||||
from utils.util_log import test_log as log
|
||||
|
@ -9,7 +9,7 @@ from common.common_type import CaseLabel, CheckTasks
|
||||
from common.code_mapping import CollectionErrorMessage as clem
|
||||
from common.code_mapping import IndexErrorMessage as iem
|
||||
|
||||
from utils.utils import *
|
||||
from utils.util_pymilvus import *
|
||||
from common.constants import *
|
||||
|
||||
prefix = "index"
|
||||
|
@ -2,7 +2,7 @@ import threading
|
||||
import time
|
||||
from multiprocessing import Pool, Process
|
||||
import pytest
|
||||
from utils import utils as ut
|
||||
from utils import util_pymilvus as ut
|
||||
from common.constants import default_entities, default_fields
|
||||
from common.common_type import CaseLabel
|
||||
from utils.util_log import test_log as log
|
||||
|
@ -11,7 +11,7 @@ from common import common_func as cf
|
||||
from common import common_type as ct
|
||||
from common.common_type import CaseLabel, CheckTasks
|
||||
from utils.util_log import test_log as log
|
||||
import utils.utils as ut
|
||||
import utils.util_pymilvus as ut
|
||||
|
||||
prefix = "query"
|
||||
exp_res = "exp_res"
|
||||
|
@ -6,7 +6,7 @@ from utils.util_log import test_log as log
|
||||
from common import common_func as cf
|
||||
from common import common_type as ct
|
||||
from common.common_type import CaseLabel, CheckTasks
|
||||
from utils.utils import *
|
||||
from utils.util_pymilvus import *
|
||||
from common.constants import *
|
||||
|
||||
prefix = "search_collection"
|
||||
|
Loading…
Reference in New Issue
Block a user