2022-12-21 09:47:27 +00:00
|
|
|
import pytest
|
2023-08-01 07:43:05 +00:00
|
|
|
import yaml
|
2022-12-21 09:47:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
def pytest_addoption(parser):
|
2024-01-23 13:34:55 +00:00
|
|
|
parser.addoption("--endpoint", action="store", default="http://127.0.0.1:19530", help="endpoint")
|
|
|
|
parser.addoption("--token", action="store", default="root:Milvus", help="token")
|
2022-12-21 09:47:27 +00:00
|
|
|
|
|
|
|
|
2023-08-08 02:25:10 +00:00
|
|
|
@pytest.fixture
|
2024-01-23 13:34:55 +00:00
|
|
|
def endpoint(request):
|
|
|
|
return request.config.getoption("--endpoint")
|
2023-08-08 02:25:10 +00:00
|
|
|
|
|
|
|
|
2022-12-21 09:47:27 +00:00
|
|
|
@pytest.fixture
|
2024-01-23 13:34:55 +00:00
|
|
|
def token(request):
|
|
|
|
return request.config.getoption("--token")
|
2022-12-21 09:47:27 +00:00
|
|
|
|
|
|
|
|