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