示例#1
0
def setup_module():
    """
    Setups the tables if not already
    """
    if not os.path.exists("offerbot.db"):
        DBManager.init_tables()
示例#2
0
def test_dbmanager_init_tables():
    """
    Tests the creation of the sqlite tables
    """
    DBManager.init_tables()
    assert os.path.exists('offerbot.db')