Beispiel #1
0
 def tearDownClass(cls):
     cls.e = None
     rm_rf('test.lmdb')
Beispiel #2
0
 def tearDownClass(cls):
     cls.e.abort()
     cls.engine.close()
     cls.e = None
     rm_rf('test.ldb')
Beispiel #3
0
 def _setUpClass(cls):
     rm_rf('test.lmdb')
     cls.env = lmdb.open('test.lmdb')
     cls.engine = acid.engines.LmdbEngine(cls.env)
     cls.e = cls.engine.begin(write=True)
Beispiel #4
0
 def _setUpClass(cls):
     rm_rf('test.ldb')
     cls.engine = acid.engines.PlyvelEngine(
         name='test.ldb', create_if_missing=True)
     cls.e = cls.engine.begin(write=True)
Beispiel #5
0
 def tearDownClass(cls):
     cls.e = None
     rm_rf('test.lmdb')
Beispiel #6
0
 def _setUpClass(cls):
     rm_rf('test.lmdb')
     cls.env = lmdb.open('test.lmdb')
     cls.engine = acid.engines.LmdbEngine(cls.env)
     cls.e = cls.engine.begin(write=True)
Beispiel #7
0
 def tearDownClass(cls):
     cls.e.abort()
     cls.engine.close()
     cls.e = None
     rm_rf('test.ldb')
Beispiel #8
0
 def _setUpClass(cls):
     rm_rf('test.ldb')
     cls.engine = acid.engines.PlyvelEngine(name='test.ldb',
                                            create_if_missing=True)
     cls.e = cls.engine.begin(write=True)