def test_check_placex_table_good(temp_db_cursor, temp_db_conn, def_config):
    temp_db_cursor.execute('CREATE TABLE placex (place_id int)')
    assert chkdb.check_placex_table(temp_db_conn,
                                    def_config) == chkdb.CheckState.OK
def test_check_placex_table_bad(temp_db_conn, def_config):
    assert chkdb.check_placex_table(temp_db_conn,
                                    def_config) == chkdb.CheckState.FATAL
示例#3
0
def test_check_placex_table_good(table_factory, temp_db_conn, def_config):
    table_factory('placex')
    assert chkdb.check_placex_table(temp_db_conn,
                                    def_config) == chkdb.CheckState.OK