Commit cd59755b authored by Julien Muchembled's avatar Julien Muchembled

Add test to remind that Resource_zGetInventoryList must be updated

parent 8a3e08cf
......@@ -37,6 +37,7 @@ from DateTime import DateTime
from Products.ERP5.tests.testAccounting import AccountingTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5ReportTestCase
from Products.ERP5Type.tests.utils import todo_erp5
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase):
......@@ -790,6 +791,19 @@ class TestAccountingReports(AccountingTestCase, ERP5ReportTestCase):
dict(source_value=account_module.goods_sales,
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):
# Simple Account Statement for "Receivable" account
self.createAccountStatementDataSet()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment