public-health-ch/tests/conftest.py

11 lines
225 B
Python
Raw Normal View History

2017-03-13 15:59:47 +00:00
import pytest
@pytest.fixture
def site_url(request):
return request.config.getoption("--site-url")
def pytest_addoption(parser):
parser.addoption("--site-url", action="store", default="type1", help="url to test")