Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
137
Merge Requests
137
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
acba8dc0
Commit
acba8dc0
authored
Jun 29, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: we no longer run namingConventionTest.py
We have testERP5NamingConvention.py for this purpose.
parent
02caefb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
79 deletions
+0
-79
product/ERP5Type/tests/namingConventionTest.py
product/ERP5Type/tests/namingConventionTest.py
+0
-79
No files found.
product/ERP5Type/tests/namingConventionTest.py
deleted
100644 → 0
View file @
02caefb6
##############################################################################
#
# Copyright (c) 2007 Nexedi SARL and Contributors. All Rights Reserved.
# Kazuhiko <kazuhiko@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
#
# ERP5 Naming Convention Test script.
#
# usage: python runUnitTest.py [OPTION]... namingConventionTest.py
#
import
re
import
unittest
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
class
TestNamingConvention
(
ERP5TypeTestCase
):
def
getBusinessTemplateList
(
self
):
"""
Return the list of business templates.
"""
# include all standard Business Templates, i.e. erp5_*
return
(
'erp5_base'
,
'erp5_pdm'
,
'erp5_trade'
,
'erp5_accounting'
,
'erp5_apparel'
,
'erp5_mrp'
,
'erp5_project'
,
'erp5_dms'
,
'erp5_web'
,
'erp5_csv_style'
,
'erp5_crm'
,
'erp5_budget'
,
'erp5_item'
,
'erp5_ui_test'
,
'erp5_accounting_l10n_fr'
,
'erp5_accounting_ui_test'
,
'erp5_banking_core'
,
'erp5_banking_cash'
,
'erp5_banking_check'
,
'erp5_banking_inventory'
,
'erp5_commerce'
,
'erp5_consulting'
,
'erp5_dummy_movement'
,
'erp5_forge'
,
'erp5_html_style'
,
'erp5_immobilisation'
,
'erp5_mobile'
,
'erp5_payroll'
,
'erp5_payroll_ui_test'
,
'erp5_pdf_editor'
,
'erp5_publication'
,
'erp5_sxc_style'
,
'erp5_dms_ui_test'
,
# skip l10n templates to save time.
# 'erp5_l10n_fr', 'erp5_l10n_ja',
# 'erp5_l10n_pl_PL', 'erp5_l10n_pt-BR',
# 'erp5_accounting_l10n_fr_m14', 'erp5_accounting_l10n_fr_m9',
# 'erp5_accounting_l10n_pl',
# 'erp5_accounting_l10n_sn',
# 'erp5_accounting_l10n_in',
)
def
getTitle
(
self
):
return
"Naming Convention"
def
testNamingConvention
(
self
):
result
=
'installed templates: %s
\
n
'
%
repr
(
self
.
getBusinessTemplateList
())
result
+=
self
.
portal
.
portal_skins
.
erp5_core
.
ERP5Site_checkNamingConventions
(
html_output
=
None
)
problems_re
=
re
.
compile
(
'([0-9]+) problems found'
)
problems
=
int
(
problems_re
.
search
(
result
).
group
(
1
))
self
.
assertEqual
(
0
,
problems
,
result
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestNamingConvention
))
return
suite
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment