Commit ff230882 authored by Tatuya Kamada's avatar Tatuya Kamada

erp5_wendelin_inventory: Add comment for the workaround.

Also use find_load_module, instead of try/except.
parent 4fd05d76
......@@ -119,11 +119,12 @@ class PandasInventoryTest(ERP5TypeTestCase):
def test_01_fillBigArrayTest(self):
resource_uid = self.sale_order['1'].getResourceUid()
data = self.portal.Base_zGetStockByResource(resource_uid=resource_uid)
try:
self.portal.Base_convertResultsToBigArray(
data, reference='dummy')
except:
pass
# next two lines are a workaround for the problem that the first time ZODB
# component loding fails inside a ZODB component test with the pkg_resources
# of setuptools-19.6.2
import erp5.component.extension
_ = erp5.component.extension.find_load_module('PandasInventory')
self.portal.Base_convertResultsToBigArray(
data,
reference='TestingFillBigArray'
......@@ -204,4 +205,4 @@ class PandasInventoryTest(ERP5TypeTestCase):
self.assertTrue(all(df['is_accountable'] == True))
self.assertTrue(all(df['resource_uid'] == resource_uid))
\ No newline at end of file
......@@ -45,9 +45,7 @@
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple>
<string>W:125, 4: No exception type(s) specified (bare-except)</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......
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