Exemple #1
0
 def setup_method(self, method):
     database.server.delete(database.db.name)
     database.init()
     view.sync_views(database.db)
Exemple #2
0
 def setup_class(cls):
     database.init()
Exemple #3
0
def doc_mgr(request):
    database.init()
    return document_manager.DocumentManager(database.db)
Exemple #4
0
 def wrapper(*args, **kwargs):
     database.init()
     doc_mgr = document_manager.DocumentManager(database.db)
     return fn(doc_mgr, *args, **kwargs)
Exemple #5
0
def i_have_a_clean_slate():
    database.init()
    database.server.delete(database.db.name)
    database.init()
    view.sync_views(database.db)