diff options
author | drebs <drebs@leap.se> | 2017-06-30 09:04:29 -0300 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-07-07 20:59:51 +0200 |
commit | 305318a6b2a9cbd638c6c48ce447fb228d7fe47d (patch) | |
tree | f31ce5be7312fa592604f51af48b3e59c23acde7 /testing/tests/conftest.py | |
parent | ab297c4efe10c70949fac5384a63cbf553ba5da9 (diff) |
[test] mark tests that depend on couchdb server
Diffstat (limited to 'testing/tests/conftest.py')
-rw-r--r-- | testing/tests/conftest.py | 8 |
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 # |