Example #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)
Example #3
0
def rebuild_db():
    '''Rebuild the db'''
    conn, db = dao.get_conn()
    conn.delete_index(db)
    conn.create_index(db)
Example #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')
Example #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')
Example #6
0
def rebuild_db():
    '''Rebuild the db'''
    conn, db = dao.get_conn()
    conn.delete_index(db)
    conn.create_index(db)