コード例 #1
0
def test_DB_dropTable_whatIfNotThere():
    set_DB_throwaway()
    DBcreate.DB_createTable()
    DBcreate.DB_dropTable()
    DBcreate.DB_dropTable()  # no problem, the IF EXISTS solves that

    assert True  # no return value; just check that it raised no exception
コード例 #2
0
def test_DB_dropTable():
    set_DB_throwaway()
    DBcreate.DB_createTable()
    DBcreate.DB_dropTable()
    assert True  # no return value; just check that it raised no exception
コード例 #3
0
def set_DB_throwaway():
    DBcreate.DBFILE = os.path.join("tests", "testing_TEMP.db")
    DBcreate.DB_dropTable()