summaryrefslogtreecommitdiff
path: root/tests/couch/common.py
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-11-09 17:53:20 -0200
committerdrebs <drebs@riseup.net>2017-11-09 17:53:20 -0200
commit102aea2f90786fbdb46d0d2e944d260fe40d8e5f (patch)
tree1f737b157e05becc29c6402056117ca7df75b74a /tests/couch/common.py
parent6f6f9d743f98052690fccc6c2b399a6c3c0583de (diff)
[tests] remove revision when copying couch dbs
Diffstat (limited to 'tests/couch/common.py')
-rw-r--r--tests/couch/common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/couch/common.py b/tests/couch/common.py
index 3c272f6e..b228610d 100644
--- a/tests/couch/common.py
+++ b/tests/couch/common.py
@@ -58,6 +58,7 @@ def copy_couch_database_for_test(test, db):
new_couch_db.put_attachment(new_doc, att,
filename=att_name)
elif doc_id.startswith('gen-'):
+ del doc['_rev']
new_couch_db.save(doc)
# cleanup connections to prevent file descriptor leaking
return new_db