summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-07-23 17:11:14 +0200
committerdrebs <drebs@leap.se>2016-07-25 09:19:53 -0300
commit2a57f749672580591b07065adde334029ddfb460 (patch)
treea15d3f60f136c30e98b083be6b47461513ce1ec9 /testing
parent239273e765ffc2cf3f74dc2bdd6b7ac8a8acdccd (diff)
[test] adapt couch tests to use new generation/transaction storage scheme
Diffstat (limited to 'testing')
-rw-r--r--testing/tests/couch/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/tests/couch/common.py b/testing/tests/couch/common.py
index b08e1fa3..263ac94c 100644
--- a/testing/tests/couch/common.py
+++ b/testing/tests/couch/common.py
@@ -49,7 +49,6 @@ def copy_couch_database_for_test(test, db):
elif 'u1db_rev' in doc:
new_doc = {
'_id': doc['_id'],
- 'u1db_transactions': doc['u1db_transactions'],
'u1db_rev': doc['u1db_rev']
}
attachments = []
@@ -65,6 +64,8 @@ def copy_couch_database_for_test(test, db):
if (att is not None):
new_couch_db.put_attachment(new_doc, att,
filename=att_name)
+ elif doc_id.startswith('gen-'):
+ new_couch_db.save(doc)
# cleanup connections to prevent file descriptor leaking
return new_db