mirror of https://github.com/milvus-io/milvus.git
25 lines
756 B
Python
25 lines
756 B
Python
import pytest
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption("--file_type", action="store", default="json", help="filetype")
|
|
parser.addoption("--create_index", action="store", default="create_index", help="whether creating index")
|
|
parser.addoption("--nb", action="store", default="", help="nb")
|
|
parser.addoption("--dim", action="store", default="2048", help="whether creating index")
|
|
|
|
@pytest.fixture
|
|
def file_type(request):
|
|
return request.config.getoption("--file_type")
|
|
|
|
|
|
@pytest.fixture
|
|
def create_index(request):
|
|
return request.config.getoption("--create_index")
|
|
|
|
@pytest.fixture
|
|
def nb(request):
|
|
return request.config.getoption("--nb")
|
|
|
|
@pytest.fixture
|
|
def dim(request):
|
|
return request.config.getoption("--dim") |