summaryrefslogtreecommitdiff
path: root/testing/tests/couch/test_backend.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/couch/test_backend.py
parentc40a2bf488e03bef14d440ab1a847afab6f5fb76 (diff)
[test] allow custom couch url for couch tests
Diffstat (limited to 'testing/tests/couch/test_backend.py')
-rw-r--r--testing/tests/couch/test_backend.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/testing/tests/couch/test_backend.py b/testing/tests/couch/test_backend.py
index c399338e..4fad11cf 100644
--- a/testing/tests/couch/test_backend.py
+++ b/testing/tests/couch/test_backend.py
@@ -39,10 +39,7 @@ class TestCouchBackendImpl(CouchDBTestCase):
def test__allocate_doc_id(self):
db = couch.CouchDatabase.open_database(
- urljoin(
- 'http://localhost:' + str(self.couch_port),
- ('test-%s' % uuid4().hex)
- ),
+ urljoin(self.couch_url, 'test-%s' % uuid4().hex),
create=True)
doc_id1 = db._allocate_doc_id()
self.assertTrue(doc_id1.startswith('D-'))