[IMP] test_lint: check for function-redefined error with pylint

With this commit, pylint will now point out when the same
function/class/method is defined more than once in the same scope which
is a recurring mistake.

closes odoo/odoo#60044

Related: odoo/enterprise#14090
Signed-off-by: Adrian Torres (adt) <adt@odoo.com>
This commit is contained in:
Adrian Torres
2020-10-16 12:56:52 +00:00
parent b7017e58cc
commit ce83249d97
@@ -28,6 +28,7 @@ class TestPyLint(TransactionCase):
'undefined-variable',
'eval-used',
'unreachable',
'function-redefined',
# custom checkers
'sql-injection',