milvus/tests/restful_client/conftest.py
zhuwenxing cad8bf6c8d
test: add restful client test in ci (#30036)
add restful client test in ci

---------

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2024-01-23 21:34:55 +08:00

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")