def setup_method(self, method): database.server.delete(database.db.name) database.init() view.sync_views(database.db)
def setup_class(cls): database.init()
def doc_mgr(request): database.init() return document_manager.DocumentManager(database.db)
def wrapper(*args, **kwargs): database.init() doc_mgr = document_manager.DocumentManager(database.db) return fn(doc_mgr, *args, **kwargs)
def i_have_a_clean_slate(): database.init() database.server.delete(database.db.name) database.init() view.sync_views(database.db)