def test_table_not_exists(db_interface): with db_interface.cursor() as db: db.cur.execute( sql.SQL("drop table {table} cascade").format( table=sql.Identifier(URLs.table_name))) urls = URLs(db_interface) assert urls.table_exists() is False
def test_table_exists(db_interface): urls = URLs(db_interface) assert urls.table_exists()