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
Paul Graydon
erp5
Commits
6dde8aca
Commit
6dde8aca
authored
Oct 30, 2013
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add unit test that use cache and thus raise bug in stock-cache
parent
2e16e170
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
product/ERP5/tests/testAccountingReports.py
product/ERP5/tests/testAccountingReports.py
+20
-0
No files found.
product/ERP5/tests/testAccountingReports.py
View file @
6dde8aca
...
@@ -3195,6 +3195,26 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase):
...
@@ -3195,6 +3195,26 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase):
credit
=
500
,
final_debit_balance
=
500
,
final_credit_balance
=
500
,
credit
=
500
,
final_debit_balance
=
500
,
final_credit_balance
=
500
,
final_balance_if_debit
=
500
,
final_balance_if_credit
=
500
)
final_balance_if_debit
=
500
,
final_balance_if_credit
=
500
)
def
testTrialBalanceFunctionWithCache
(
self
):
# trial balance restricted to a function
# Make it fill cache by asking it a later date
self
.
createProjectAndFunctionDataSet
()
# set request variables and render
request_form
=
self
.
portal
.
REQUEST
.
form
request_form
[
'at_date'
]
=
DateTime
(
2010
,
12
,
31
)
request_form
[
'section_category'
]
=
'group/demo_group'
request_form
[
'section_category_strict'
]
=
False
request_form
[
'simulation_state'
]
=
[
'stopped'
,
'delivered'
]
request_form
[
'per_account_class_summary'
]
=
0
request_form
[
'show_empty_accounts'
]
=
0
request_form
[
'per_account_class_summary'
]
=
0
request_form
[
'function'
]
=
''
request_form
[
'group_analytic'
]
=
[
"function"
]
report_section_list
=
self
.
portal
.
accounting_module
.
AccountModule_getTrialBalanceReportSectionList
()
line_list
=
self
.
getListBoxLineList
(
report_section_list
[
0
])
def
testTrialBalanceProject
(
self
):
def
testTrialBalanceProject
(
self
):
# trial balance restricted to a project
# trial balance restricted to a project
self
.
createProjectAndFunctionDataSet
()
self
.
createProjectAndFunctionDataSet
()
...
...
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