Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
108
Merge Requests
108
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
198e2463
Commit
198e2463
authored
May 25, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be interested only in setup packing lists.
New logic creates hosting deliveries really fast.
parent
a66103c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
master/product/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
...oduct/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
+12
-2
No files found.
master/product/Vifib/tests/testVifibSlapWebServiceSlaveInstance.py
View file @
198e2463
...
...
@@ -2,6 +2,7 @@ from testVifibSlapWebService import TestVifibSlapWebServiceMixin
from
Products.ERP5Type.tests.Sequence
import
SequenceList
import
unittest
from
Products.ERP5Type.tests.backportUnittest
import
skip
from
Products.ZSQLCatalog.SQLCatalog
import
Query
,
ComplexQuery
class
TestVifibSlapWebServiceSlaveInstance
(
TestVifibSlapWebServiceMixin
):
def
stepCheckComputerPartitionSaleOrderAggregatedList
(
self
,
sequence
):
...
...
@@ -19,8 +20,17 @@ class TestVifibSlapWebServiceSlaveInstance(TestVifibSlapWebServiceMixin):
sale_order_line_2
.
getAggregateValue
(
portal_type
=
self
.
computer_partition_portal_type
))
self
.
assertEquals
(
2
,
len
(
sale_order_line_list
))
sale_packing_line_list
=
computer_partition
.
getAggregateRelatedValueList
(
portal_type
=
"Sale Packing List Line"
)
query
=
ComplexQuery
(
Query
(
default_aggregate_uid
=
computer_partition
.
getUid
()),
Query
(
default_resource_uid
=
self
.
portal
.
restrictedTraverse
(
self
.
portal
.
portal_preferences
.
getPreferredInstanceSetupResource
()
).
getUid
()),
operator
=
"AND"
)
sale_packing_line_list
=
portal_catalog
(
portal_type
=
"Sale Packing List Line"
,
query
=
query
)
self
.
assertEquals
(
2
,
len
(
sale_packing_line_list
))
sale_packing_list_line_1
,
sale_packing_list_line_2
=
sale_packing_line_list
self
.
assertEquals
(
sale_packing_list_line_1
.
getAggregateValue
(
...
...
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