Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Hugo Ricateau
erp5
Commits
931bc41d
Commit
931bc41d
authored
13 years ago
by
Kazuhiko Shiozaki
Browse files
Options
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):
lines_count
-
empty_lines_count
)
# we don't remove empty lines if there is only empty lines
accounting_transaction
=
self
.
portal
.
accounting_module
.
newContent
(
another_
accounting_transaction
=
self
.
portal
.
accounting_module
.
newContent
(
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
)
for
i
in
range
(
3
):
accounting_transaction
.
newContent
(
another_
accounting_transaction
.
newContent
(
portal_type
=
self
.
accounting_transaction_line_portal_type
)
lines_count
=
len
(
accounting_transaction
.
getMovementList
())
accounting_transaction
.
A
ccounting
T
ransaction
_deleteEmptyLines
(
redirect
=
0
)
self
.
assertEquals
(
len
(
accounting_transaction
.
getMovementList
()),
lines_count
)
lines_count
=
len
(
another_
accounting_transaction
.
getMovementList
())
self
.
getWorkflowTool
().
doActionFor
(
another_a
ccounting
_t
ransaction
,
'stop_action'
)
self
.
assertEquals
(
len
(
another_
accounting_transaction
.
getMovementList
()),
lines_count
)
############################################################################
## Test Methods ############################################################
...
...
This diff is collapsed.
Click to expand it.
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