예제 #1
0
def test_SQLfileIntoDB():
    set_DB_throwaway()
    delete_DB_and_SQL_file()

    DBcreate.DB_createTable()
    DBcreate.writeRowSQLIntoFile(block_example)

    conn = sqlite3.connect(DBcreate.DBFILE)
    DBcreate.SQLfileIntoDB(conn)
    conn.close()
예제 #2
0
def test_writeRowIntoFile():
    set_DB_throwaway()
    DBcreate.writeRowSQLIntoFile(block_example)

    assert True  # no return value; just check that it raised no exception