diff options
Diffstat (limited to 'testing/tests/conftest.py')
-rw-r--r-- | testing/tests/conftest.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/tests/conftest.py b/testing/tests/conftest.py new file mode 100644 index 00000000..3be9ba2a --- /dev/null +++ b/testing/tests/conftest.py @@ -0,0 +1,13 @@ +import pytest + + +def pytest_addoption(parser): + parser.addoption( + "--couch-url", type="string", default="http://127.0.0.1:5984", + help="the url for the couch server to be used during tests") + + +@pytest.fixture +def couch_url(request): + url = request.config.getoption('--couch-url') + request.cls.couch_url = url |