def noKeywordFoundExceptionQueries():
noKeyword = [
{
'input': 'Affiche moi.', # No keyword found in sentence!
'database': DATABASE_PATH + 'ecole.sql',
'language': LANG_PATH + 'french.csv'
},
{
'input': 'Affiche moi les étudiants', # No keyword found in sentence!
'database': DATABASE_PATH + 'ecole.sql',
'language': LANG_PATH + 'french.csv'
}
]
for test in noKeyword:
with pytest.raises(Exception):
Ln2sql(test['database'], test['language']).get_query(test['input'])
评论列表
文章目录