Fix error output when warnings are found
We should log the *warnings* found, not errors!
This commit is contained in:
1 parent
2d15ea84f9
commit
9fdfa06845
1 file changed
+1
-1
@@ -23,7 +23,7 @@ class SqlAnalyserTestCase(unittest.TestCase):
|
||||
errors, _, warnings = self.analyse_sql(sql)
|
||||
self.assertEqual(0, len(errors), f"Found errors in sql: {errors}")
|
||||
if not allow_warnings:
|
||||
self.assertEqual(0, len(warnings), f"Found warnings in sql: {errors}")
|
||||
self.assertEqual(0, len(warnings), f"Found warnings in sql: {warnings}")
|
||||
|
||||
def assertBackwardIncompatibleSql(self, sql, code=None):
|
||||
errors, _, _ = self.analyse_sql(sql)
|
||||
|
||||
Reference in new issue
Block a user