Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
Tatuya Kamada
wendelin
Commits
ff230882
Commit
ff230882
authored
Mar 29, 2016
by
Tatuya Kamada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin_inventory: Add comment for the workaround.
Also use find_load_module, instead of try/except.
parent
4fd05d76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
bt5/erp5_wendelin_inventory/TestTemplateItem/portal_components/test.erp5.testPandasInventory.py
...teItem/portal_components/test.erp5.testPandasInventory.py
+7
-6
bt5/erp5_wendelin_inventory/TestTemplateItem/portal_components/test.erp5.testPandasInventory.xml
...eItem/portal_components/test.erp5.testPandasInventory.xml
+1
-3
No files found.
bt5/erp5_wendelin_inventory/TestTemplateItem/portal_components/test.erp5.testPandasInventory.py
View file @
ff230882
...
...
@@ -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'
...
...
bt5/erp5_wendelin_inventory/TestTemplateItem/portal_components/test.erp5.testPandasInventory.xml
View file @
ff230882
...
...
@@ -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>
...
...
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