2022-12-21 17:47:27 +08:00
|
|
|
import pytest
|
2023-08-01 15:43:05 +08:00
|
|
|
import yaml
|
2022-12-21 17:47:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
def pytest_addoption(parser):
|
2024-01-23 21:34:55 +08: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 17:47:27 +08:00
|
|
|
|
|
|
|
|
2023-08-08 10:25:10 +08:00
|
|
|
@pytest.fixture
|
2024-01-23 21:34:55 +08:00
|
|
|
def endpoint(request):
|
|
|
|
return request.config.getoption("--endpoint")
|
2023-08-08 10:25:10 +08:00
|
|
|
|
|
|
|
|
2022-12-21 17:47:27 +08:00
|
|
|
@pytest.fixture
|
2024-01-23 21:34:55 +08:00
|
|
|
def token(request):
|
|
|
|
return request.config.getoption("--token")
|
2022-12-21 17:47:27 +08:00
|
|
|
|
|
|
|
|