mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-19 07:32:03 +02:00
Initial commit: Core packages
This commit is contained in:
commit
12c29a983b
9512 changed files with 8379910 additions and 0 deletions
18
odoo-bringout-oca-ocb-base/odoo/tests/test_security.py
Normal file
18
odoo-bringout-oca-ocb-base/odoo/tests/test_security.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
from os import environ, path
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
#This test is meant to be standalone, correct usage : python test_security.py file1 file2 file3 ...
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
HERE = path.dirname(__file__)
|
||||
|
||||
if 'PYTHONPATH' not in environ:
|
||||
environ['PYTHONPATH'] = HERE
|
||||
else:
|
||||
environ['PYTHONPATH'] += ':' + HERE
|
||||
|
||||
command = ['pylint', '--rcfile=/dev/null', '--disable=all', '--output-format', 'json', '--enable=non-const-markup', '--reports=n', '--load-plugins=_odoo_checker_markup', *sys.argv[1:]]
|
||||
|
||||
proc = subprocess.run(command, env=environ, check=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue