dns-lg/conftest.py

10 lines
263 B
Python

import pytest
def pytest_addoption(parser):
parser.addoption("--url", action="store", default='http://localhost:8080/',
help="URL of the server to test")
@pytest.fixture
def prefix(request):
return request.config.getoption("--url")