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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Gambier
erp5
Commits
e5c4ad3f
Commit
e5c4ad3f
authored
Jun 28, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: test erp5_accounting with CodingStyleTestCase
parent
7e0db3ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
product/ERP5/tests/testAccounting.py
product/ERP5/tests/testAccounting.py
+19
-1
No files found.
product/ERP5/tests/testAccounting.py
View file @
e5c4ad3f
...
@@ -36,6 +36,7 @@ from DateTime import DateTime
...
@@ -36,6 +36,7 @@ from DateTime import DateTime
from
Products.CMFCore.utils
import
_checkPermission
from
Products.CMFCore.utils
import
_checkPermission
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
from
Products.ERP5Type.tests.CodingStyleTestCase
import
CodingStyleTestCase
from
Products.ERP5Type.tests.utils
import
reindex
from
Products.ERP5Type.tests.utils
import
reindex
from
Products.DCWorkflow.DCWorkflow
import
ValidationFailed
from
Products.DCWorkflow.DCWorkflow
import
ValidationFailed
from
AccessControl.SecurityManagement
import
newSecurityManager
from
AccessControl.SecurityManagement
import
newSecurityManager
...
@@ -5803,6 +5804,22 @@ class TestInternalInvoiceTransaction(AccountingTestCase):
...
@@ -5803,6 +5804,22 @@ class TestInternalInvoiceTransaction(AccountingTestCase):
self
.
assertEqual
(
'stopped'
,
internal_invoice
.
getSimulationState
())
self
.
assertEqual
(
'stopped'
,
internal_invoice
.
getSimulationState
())
class
TestAccountingCodingStyle
(
CodingStyleTestCase
,
AccountingTestCase
):
"""Runs CodingStyleTestCase checks on erp5_accounting
"""
def
getBusinessTemplateList
(
self
):
# include administration for test_PythonSourceCode
return
AccountingTestCase
.
getBusinessTemplateList
(
self
)
+
(
'erp5_administration'
,
)
def
getTestedBusinessTemplateList
(
self
):
return
(
'erp5_accounting'
,
)
def
beforeTearDown
(
self
):
# we don't want to run AccountingTestCase.tearDown
pass
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestAccountingWithSequences
))
suite
.
addTest
(
unittest
.
makeSuite
(
TestAccountingWithSequences
))
...
@@ -5813,4 +5830,5 @@ def test_suite():
...
@@ -5813,4 +5830,5 @@ def test_suite():
suite
.
addTest
(
unittest
.
makeSuite
(
TestAccountingExport
))
suite
.
addTest
(
unittest
.
makeSuite
(
TestAccountingExport
))
suite
.
addTest
(
unittest
.
makeSuite
(
TestAccountingTransactionTemplate
))
suite
.
addTest
(
unittest
.
makeSuite
(
TestAccountingTransactionTemplate
))
suite
.
addTest
(
unittest
.
makeSuite
(
TestInternalInvoiceTransaction
))
suite
.
addTest
(
unittest
.
makeSuite
(
TestInternalInvoiceTransaction
))
suite
.
addTest
(
unittest
.
makeSuite
(
TestAccountingCodingStyle
))
return
suite
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