summaryrefslogtreecommitdiff
path: root/testing/tests/couch/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/couch/common.py')
-rw-r--r--testing/tests/couch/common.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/testing/tests/couch/common.py b/testing/tests/couch/common.py
index 45cf8d7f..48d30168 100644
--- a/testing/tests/couch/common.py
+++ b/testing/tests/couch/common.py
@@ -13,10 +13,9 @@ nested_doc = tests.nested_doc
def make_couch_database_for_test(test, replica_uid):
- port = str(test.couch_port)
dbname = ('test-%s' % uuid4().hex)
db = couch.CouchDatabase.open_database(
- urljoin('http://localhost:' + port, dbname),
+ urljoin(test.couch_url, dbname),
create=True,
replica_uid=replica_uid or 'test',
ensure_ddocs=True)
@@ -25,8 +24,7 @@ def make_couch_database_for_test(test, replica_uid):
def copy_couch_database_for_test(test, db):
- port = str(test.couch_port)
- couch_url = 'http://localhost:' + port
+ couch_url = test.couch_url
new_dbname = db._dbname + '_copy'
new_db = couch.CouchDatabase.open_database(
urljoin(couch_url, new_dbname),