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
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
def set_DB_throwaway(): DBcreate.DBFILE = os.path.join("tests", "testing_TEMP.db") DBcreate.DB_dropTable()