示例#1
0
 def teardown_class(cls):
     conn, db = dao.get_conn()
     conn.delete_index(TESTDB)
 def teardown_class(cls):
     conn, db = dao.get_conn()
     conn.delete_index(TESTDB)
示例#3
0
文件: cli.py 项目: jasonzou/MyPapers
def rebuild_db():
    '''Rebuild the db'''
    conn, db = dao.get_conn()
    conn.delete_index(db)
    conn.create_index(db)
示例#4
0
 def teardown_class(cls):
     conn, db = dao.get_conn()
     conn.delete_index(TESTDB)
     for x in os.listdir('test/data/downloads'):
         os.unlink(os.path.join('test/data/downloads', x))
     os.rmdir('test/data/downloads')
示例#5
0
 def teardown_class(cls):
     conn, db = dao.get_conn()
     conn.delete_index(TESTDB)
     for x in os.listdir('test/data/downloads'):
         os.unlink(os.path.join('test/data/downloads', x))
     os.rmdir('test/data/downloads')
示例#6
0
文件: cli.py 项目: DarioGT/bibserver
def rebuild_db():
    '''Rebuild the db'''
    conn, db = dao.get_conn()
    conn.delete_index(db)
    conn.create_index(db)