예제 #1
0
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
예제 #2
0
def test_table_exists(db_interface):
    urls = URLs(db_interface)
    assert urls.table_exists()