Skip to content

Commit

Permalink
[FIX] Check file-not-used: Skip tests folders (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus Zapata authored and moylop260 committed Feb 7, 2017
1 parent e2e6f5a commit 33c75b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pylint_odoo/checkers/modules_odoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,9 @@ def _check_file_not_used(self):
module_files = set(self._get_module_files())
referenced_files = set(self._get_manifest_referenced_files())
for no_referenced_file in (module_files - referenced_files):
if not no_referenced_file.startswith('static/'):
if (not no_referenced_file.startswith('static/') and
not (no_referenced_file.startswith('test/') or
no_referenced_file.startswith('tests/'))):
self.msg_args.append((no_referenced_file,))
if self.msg_args:
return False
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
</data>
</odoo>

0 comments on commit 33c75b4

Please sign in to comment.