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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
erp5
Commits
4a0ec490
Commit
4a0ec490
authored
Feb 09, 2015
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add asserts
parent
6ca5cfeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
product/ERP5/tests/testAccounting.py
product/ERP5/tests/testAccounting.py
+10
-1
No files found.
product/ERP5/tests/testAccounting.py
View file @
4a0ec490
...
@@ -2457,7 +2457,6 @@ class TestTransactions(AccountingTestCase):
...
@@ -2457,7 +2457,6 @@ class TestTransactions(AccountingTestCase):
def
getBusinessTemplateList
(
self
):
def
getBusinessTemplateList
(
self
):
return
AccountingTestCase
.
getBusinessTemplateList
(
self
)
+
\
return
AccountingTestCase
.
getBusinessTemplateList
(
self
)
+
\
(
'erp5_invoicing'
,
'erp5_simplified_invoicing'
)
(
'erp5_invoicing'
,
'erp5_simplified_invoicing'
)
def
_resetIdGenerator
(
self
):
def
_resetIdGenerator
(
self
):
# clear all existing ids in portal ids
# clear all existing ids in portal ids
self
.
portal
.
portal_ids
.
clearGenerator
(
all
=
True
)
self
.
portal
.
portal_ids
.
clearGenerator
(
all
=
True
)
...
@@ -3198,6 +3197,16 @@ class TestTransactions(AccountingTestCase):
...
@@ -3198,6 +3197,16 @@ class TestTransactions(AccountingTestCase):
for
line
in
invoice
.
contentValues
():
for
line
in
invoice
.
contentValues
():
self
.
assertTrue
(
line
.
getGroupingReference
())
self
.
assertTrue
(
line
.
getGroupingReference
())
def
test_allowed_content_type_list
(
self
):
portal_type_list
=
self
.
portal
.
portal_types
[
'Sale Invoice Transaction'
].
\
getTypeAllowedContentTypeList
()
assert
'Invoice Line'
in
portal_type_list
,
portal_type_list
portal_type_list
=
self
.
portal
.
portal_types
[
'Purchase Invoice Transaction'
].
\
getTypeAllowedContentTypeList
()
assert
'Invoice Line'
in
portal_type_list
,
portal_type_list
assert
'erp5_invoicing'
in
self
.
getBusinessTemplateList
()
assert
'erp5_simplified_invoicing'
in
self
.
getBusinessTemplateList
()
def
test_roundDebitCredit_raises_if_big_difference
(
self
):
def
test_roundDebitCredit_raises_if_big_difference
(
self
):
invoice
=
self
.
_makeOne
(
invoice
=
self
.
_makeOne
(
portal_type
=
'Sale Invoice Transaction'
,
portal_type
=
'Sale Invoice Transaction'
,
...
...
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