summaryrefslogtreecommitdiff
path: root/testing/tests/conftest.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-07-25 07:48:41 -0300
committerdrebs <drebs@leap.se>2016-08-01 21:09:03 -0300
commitfa2c50b9c6cc037a8ab348b5a746b2e728f3068a (patch)
tree4d73a4f8f1f7d5853194119ccbee6eca4ca7da44 /testing/tests/conftest.py
parentc40a2bf488e03bef14d440ab1a847afab6f5fb76 (diff)
[test] allow custom couch url for couch tests
Diffstat (limited to 'testing/tests/conftest.py')
-rw-r--r--testing/tests/conftest.py13
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