Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
931bc41d
Commit
931bc41d
authored
Aug 31, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify a test following
cdeefdd9
.
parent
61f967f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
product/ERP5/tests/testAccounting.py
product/ERP5/tests/testAccounting.py
+9
-5
No files found.
product/ERP5/tests/testAccounting.py
View file @
931bc41d
...
@@ -4254,15 +4254,19 @@ class TestAccountingWithSequences(ERP5TypeTestCase):
...
@@ -4254,15 +4254,19 @@ class TestAccountingWithSequences(ERP5TypeTestCase):
lines_count
-
empty_lines_count
)
lines_count
-
empty_lines_count
)
# we don't remove empty lines if there is only empty lines
# we don't remove empty lines if there is only empty lines
accounting_transaction
=
self
.
portal
.
accounting_module
.
newContent
(
a
nother_a
ccounting_transaction
=
self
.
portal
.
accounting_module
.
newContent
(
portal_type
=
self
.
accounting_transaction_portal_type
,
portal_type
=
self
.
accounting_transaction_portal_type
,
start_date
=
accounting_transaction
.
getStartDate
(),
resource
=
accounting_transaction
.
getResource
(),
source_section
=
accounting_transaction
.
getSourceSection
(),
destination_section
=
accounting_transaction
.
getDestinationSection
(),
created_by_builder
=
1
)
created_by_builder
=
1
)
for
i
in
range
(
3
):
for
i
in
range
(
3
):
accounting_transaction
.
newContent
(
a
nother_a
ccounting_transaction
.
newContent
(
portal_type
=
self
.
accounting_transaction_line_portal_type
)
portal_type
=
self
.
accounting_transaction_line_portal_type
)
lines_count
=
len
(
accounting_transaction
.
getMovementList
())
lines_count
=
len
(
a
nother_a
ccounting_transaction
.
getMovementList
())
accounting_transaction
.
AccountingTransaction_deleteEmptyLines
(
redirect
=
0
)
self
.
getWorkflowTool
().
doActionFor
(
another_accounting_transaction
,
'stop_action'
)
self
.
assertEquals
(
len
(
accounting_transaction
.
getMovementList
()),
lines_count
)
self
.
assertEquals
(
len
(
a
nother_a
ccounting_transaction
.
getMovementList
()),
lines_count
)
############################################################################
############################################################################
## Test Methods ############################################################
## Test Methods ############################################################
...
...
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