2019-12-17 18:01:58 +08:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
def pytest_addoption(parser):
|
2021-04-06 21:19:27 +08:00
|
|
|
parser.addoption(
|
|
|
|
"--island",
|
|
|
|
action="store",
|
|
|
|
default="",
|
|
|
|
help="Specify the Monkey Island address (host+port).",
|
|
|
|
)
|
2019-12-17 18:01:58 +08:00
|
|
|
|
|
|
|
|
2021-04-06 21:19:27 +08:00
|
|
|
@pytest.fixture(scope="module")
|
2019-12-17 18:01:58 +08:00
|
|
|
def island(request):
|
|
|
|
return request.config.getoption("--island")
|