Exemplo n.º 1
0
def test_db_drop_table(bot):
    rss._db_create_table(bot, "feedname")
    rss._db_drop_table(bot, "feedname")
    result = rss._db_check_if_table_exists(bot, "feedname")
    assert [] == result
Exemplo n.º 2
0
def test_db_drop_table(bot):
    rss._db_create_table(bot, 'feedname')
    rss._db_drop_table(bot, 'feedname')
    result = rss._db_check_if_table_exists(bot, 'feedname')
    assert [] == result
Exemplo n.º 3
0
def test_db_create_table_and_db_check_if_table_exists(bot):
    rss._db_create_table(bot, "feedname")
    result = rss._db_check_if_table_exists(bot, "feedname")
    assert [(rss._digest_tablename("feedname"),)] == result
Exemplo n.º 4
0
def test_db_create_table_and_db_check_if_table_exists(bot):
    rss._db_create_table(bot, 'feedname')
    result = rss._db_check_if_table_exists(bot, 'feedname')
    assert [(rss._digest_tablename('feedname'), )] == result