From 52b0a8eaa6fa022587a46822cb921a6507690978 Mon Sep 17 00:00:00 2001 From: "Mod2 Team (OpenERP)" <> Date: Thu, 24 Jun 2010 12:43:42 +0530 Subject: [IMP] base_module_quality * replace __terp__ with __openerp__ in all tests. bzr revid: hmo@tinyerp.com-20100624071342-je03w5mouzlg0kmz --- addons/base_module_quality/structure_test/structure_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/base_module_quality/structure_test/structure_test.py') diff --git a/addons/base_module_quality/structure_test/structure_test.py b/addons/base_module_quality/structure_test/structure_test.py index 466976f5d17..10b80aaacdd 100644 --- a/addons/base_module_quality/structure_test/structure_test.py +++ b/addons/base_module_quality/structure_test/structure_test.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,7 +15,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## @@ -82,7 +82,7 @@ This test checks if the module satisfy tiny structure # module files calculation (module.py,module_view.xml,etc..) com_list = ['_unit_test.xml', '.py', '_view.xml', '_workflow.xml' , '_wizard.xml', '_report.xml', '_data.xml', '_demo.xml', '_security.xml', '_sequence.xml', '_graph.xml'] com_list = map(lambda x: module_name + x, com_list) - main_file = ['__init__.py', '__terp__.py'] + main_file = ['__init__.py', '__openerp__.py'] com_list.extend(main_file) module_dict['module'] = filter(lambda x: len(x.split(".")) > 1, module_dict['module']) score = self.get_score(module_dict['module'], com_list) -- cgit v1.2.3 From d5ad0b8ff144886a2a5b3766a297b72f59633184 Mon Sep 17 00:00:00 2001 From: "RHA (Open ERP)" <> Date: Thu, 19 Aug 2010 17:21:57 +0530 Subject: [CLEAN]: Removed commented codes, unnecessary spaces. bzr revid: uco@tinyerp.com-20100819115157-sfsmbnjdgpp4wl12 --- addons/base_module_quality/structure_test/structure_test.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'addons/base_module_quality/structure_test/structure_test.py') diff --git a/addons/base_module_quality/structure_test/structure_test.py b/addons/base_module_quality/structure_test/structure_test.py index 10b80aaacdd..2238d5f3a93 100644 --- a/addons/base_module_quality/structure_test/structure_test.py +++ b/addons/base_module_quality/structure_test/structure_test.py @@ -50,7 +50,6 @@ This test checks if the module satisfy tiny structure f_list = [] module_dict = {} module_dict['module'] = [] -# count = 0 final_score = 0.0 if not module_name.islower(): @@ -67,7 +66,6 @@ This test checks if the module satisfy tiny structure elif file_struct == 'process' and os.path.isdir(path): module_dict[file_struct] = [] elif file_struct != 'i18n' and os.path.isdir(path): -# self.counter += 1 self.run_test(cr, uid, path) module_dict['module'].append(file_struct) f_list.append(file_struct) -- cgit v1.2.3