예제 #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()