mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
cad8bf6c8d
add restful client test in ci --------- Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
20 lines
423 B
Python
20 lines
423 B
Python
import pytest
|
|
import yaml
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption("--endpoint", action="store", default="http://127.0.0.1:19530", help="endpoint")
|
|
parser.addoption("--token", action="store", default="root:Milvus", help="token")
|
|
|
|
|
|
@pytest.fixture
|
|
def endpoint(request):
|
|
return request.config.getoption("--endpoint")
|
|
|
|
|
|
@pytest.fixture
|
|
def token(request):
|
|
return request.config.getoption("--token")
|
|
|
|
|