summaryrefslogtreecommitdiff
path: root/testing/tests/conftest.py
blob: 3be9ba2a8cbafb1a44d78c528f22f0ee22abfd17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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