monkey/envs/monkey_zoo/blackbox/conftest.py

12 lines
284 B
Python
Raw Normal View History

import pytest
2019-08-29 19:57:04 +08:00
def pytest_addoption(parser):
parser.addoption("--island", action="store", default="",
help="Specify the Monkey Island address (host+port).")
2019-08-29 19:57:04 +08:00
@pytest.fixture
def island(request):
request.cls.island = request.config.getoption("--island")