Commits

Ronny Pfannschmidt committed 9e14190

use delete + create instead of flush, we shouldnt keep ddocs and couchdbkit is broken for attachmets

Comments (0)

Files changed (1)

pytest_couchdbkit/__init__.py

     if not suffix:
         pytest.fail('no couchdbkit_suffix set in ini')
     dbname = 'pytest_' + suffix
-    db = server.get_or_create_db(dbname)
-    db.flush()
+
+    if dbname in server.all_dbs():
+        servere.delete_db(dbname)
+    db = server.create_db(dbname)
+
 
     def finalize_db():
         with tmpdir.join('couchdb.dump').open('w') as fp: