def noTableFoundExceptionQueries():
noTable = [
{
'input': 'Quel est le nom des reservation ?', # No table name found in sentence!
'database': DATABASE_PATH + 'ecole.sql',
'language': LANG_PATH + 'french.csv'
}
]
for test in noTable:
with pytest.raises(Exception):
Ln2sql(test['database'], test['language']).get_query(test['input'])
评论列表
文章目录