You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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")
|