milvus/tests/restful_client/conftest.py

20 lines
423 B
Python
Raw Normal View History

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