summaryrefslogtreecommitdiff
path: root/testing/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/conftest.py')
-rw-r--r--testing/tests/conftest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/tests/conftest.py b/testing/tests/conftest.py
index 2459307a..4d88072e 100644
--- a/testing/tests/conftest.py
+++ b/testing/tests/conftest.py
@@ -16,6 +16,14 @@ from leap.soledad.common.couch import CouchDatabase
from leap.soledad.client import Soledad
+# mark tests that depend on couchdb
+def pytest_collection_modifyitems(items):
+ marker = getattr(pytest.mark, 'needs_couch')
+ for item in items:
+ if 'soledad/testing/tests/couch/' in item.module.__file__:
+ item.add_marker(marker)
+
+
#
# default options for all tests
#