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
1
Merge Requests
1
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
Boxiang Sun
erp5
Commits
cd59755b
Commit
cd59755b
authored
May 07, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test to remind that Resource_zGetInventoryList must be updated
parent
8a3e08cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
product/ERP5/tests/testAccountingReports.py
product/ERP5/tests/testAccountingReports.py
+14
-0
No files found.
product/ERP5/tests/testAccountingReports.py
View file @
cd59755b
...
@@ -37,6 +37,7 @@ from DateTime import DateTime
...
@@ -37,6 +37,7 @@ from DateTime import DateTime
from
Products.ERP5.tests.testAccounting
import
AccountingTestCase
from
Products.ERP5.tests.testAccounting
import
AccountingTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5ReportTestCase
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5ReportTestCase
from
Products.ERP5Type.tests.utils
import
todo_erp5
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
class
TestAccountingReports
(
AccountingTestCase
,
ERP5ReportTestCase
):
class
TestAccountingReports
(
AccountingTestCase
,
ERP5ReportTestCase
):
...
@@ -790,6 +791,19 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase):
...
@@ -790,6 +791,19 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase):
dict
(
source_value
=
account_module
.
goods_sales
,
dict
(
source_value
=
account_module
.
goods_sales
,
source_credit
=
300.0
)))
source_credit
=
300.0
)))
@
todo_erp5
def
test_Resource_zGetInventoryList
(
self
):
# TODO: Fix Resource_zGetInventoryList so that we don't need to workaround
# new behaviour of MariaDB.
# Indeed, https://bugs.launchpad.net/maria/+bug/985828 has been marked
# as WONTFIX.
q
=
self
.
portal
.
erp5_sql_connection
.
manage_test
q
(
"SET optimizer_switch = 'derived_merge=on'"
)
try
:
self
.
testAccountStatement
()
finally
:
q
(
"SET optimizer_switch = 'derived_merge=off'"
)
def
testAccountStatement
(
self
):
def
testAccountStatement
(
self
):
# Simple Account Statement for "Receivable" account
# Simple Account Statement for "Receivable" account
self
.
createAccountStatementDataSet
()
self
.
createAccountStatementDataSet
()
...
...
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