From fa2c50b9c6cc037a8ab348b5a746b2e728f3068a Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 25 Jul 2016 07:48:41 -0300 Subject: [test] allow custom couch url for couch tests --- testing/test_soledad/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/test_soledad/util.py') diff --git a/testing/test_soledad/util.py b/testing/test_soledad/util.py index 02f3859b..e23d185e 100644 --- a/testing/test_soledad/util.py +++ b/testing/test_soledad/util.py @@ -27,6 +27,7 @@ import shutil import random import string import couchdb +import pytest from uuid import uuid4 from mock import Mock @@ -344,6 +345,7 @@ class BaseSoledadTest(BaseLeapTest, MockedSharedDBTest): self.assertEqual(exp_doc.content, doc.content) +@pytest.mark.usefixtures("couch_url") class CouchDBTestCase(unittest.TestCase, MockedSharedDBTest): """ @@ -354,8 +356,6 @@ class CouchDBTestCase(unittest.TestCase, MockedSharedDBTest): """ Make sure we have a CouchDB instance for a test. """ - self.couch_port = 5984 - self.couch_url = 'http://localhost:%d' % self.couch_port self.couch_server = couchdb.Server(self.couch_url) def delete_db(self, name): -- cgit v1.2.3