def noLinkForJoinFoundExceptionQueries():
noLink = [
{
'input': "Quel est le professeur qui enseigne la matière SVT ?",
# There is at least column `matiere` that is unreachable from table `PROFESSEUR`!
'database': DATABASE_PATH + 'ecole.sql',
'language': LANG_PATH + 'french.csv'
},
{
'input': "compte les salle des élève",
# There is at least column `salle` that is unreachable from table `ELEVE`!
'database': DATABASE_PATH + 'ecole.sql',
'language': LANG_PATH + 'french.csv'
}
]
for test in noLink:
with pytest.raises(Exception):
Ln2sql(test['database'], test['language']).get_query(test['input'])
评论列表
文章目录