2019-08-29 20:14:07 +08:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
2019-08-29 19:57:04 +08:00
|
|
|
def pytest_addoption(parser):
|
2019-08-29 20:14:07 +08:00
|
|
|
parser.addoption("--island", action="store", default="",
|
|
|
|
help="Specify the Monkey Island address (host+port).")
|
2019-08-29 19:57:04 +08:00
|
|
|
|
|
|
|
|
2019-09-11 17:39:28 +08:00
|
|
|
@pytest.fixture(scope='module')
|
2019-08-29 20:14:07 +08:00
|
|
|
def island(request):
|
2019-09-11 17:39:28 +08:00
|
|
|
return request.config.getoption("--island")
|