Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Roque
slapos.core
Commits
b7ac4e57
Commit
b7ac4e57
authored
Mar 07, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consider only validated Open Sale Orders.
parent
d1570751
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
...ct/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
+4
-2
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
+8
-4
No files found.
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
View file @
b7ac4e57
...
@@ -62,8 +62,10 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
...
@@ -62,8 +62,10 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
# fetch open order, open order line and subscription
# fetch open order, open order line and subscription
person
=
self
.
portal
.
person_module
[
'test_vifib_customer'
]
person
=
self
.
portal
.
person_module
[
'test_vifib_customer'
]
open_order
=
\
open_order
=
self
.
portal
.
portal_catalog
.
getResultValue
(
person
.
getDestinationDecisionRelatedValue
(
portal_type
=
"Open Sale Order"
)
default_destination_decision_uid
=
person
.
getUid
(),
portal_type
=
"Open Sale Order"
,
validation_state
=
'validated'
)
open_order_line
=
\
open_order_line
=
\
open_order
.
contentValues
(
portal_type
=
"Open Sale Order Line"
)[
0
]
open_order
.
contentValues
(
portal_type
=
"Open Sale Order Line"
)[
0
]
...
...
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
View file @
b7ac4e57
...
@@ -19,8 +19,10 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -19,8 +19,10 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
# find related documents: open order, open order line,
# find related documents: open order, open order line,
# subscription item, etc.
# subscription item, etc.
person
=
self
.
portal
.
person_module
[
'test_vifib_customer'
]
person
=
self
.
portal
.
person_module
[
'test_vifib_customer'
]
open_order
=
\
open_order
=
self
.
portal
.
portal_catalog
.
getResultValue
(
person
.
getDestinationDecisionRelatedValue
(
portal_type
=
"Open Sale Order"
)
default_destination_decision_uid
=
person
.
getUid
(),
validation_state
=
'validated'
,
portal_type
=
"Open Sale Order"
)
open_order_line_list
=
\
open_order_line_list
=
\
open_order
.
contentValues
(
portal_type
=
"Open Sale Order Line"
)
open_order
.
contentValues
(
portal_type
=
"Open Sale Order Line"
)
self
.
assertEquals
(
1
,
len
(
open_order_line_list
))
self
.
assertEquals
(
1
,
len
(
open_order_line_list
))
...
@@ -164,8 +166,10 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -164,8 +166,10 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
def
stepCheckThreeTopLevelSimulationMovement
(
self
,
sequence
,
**
kw
):
def
stepCheckThreeTopLevelSimulationMovement
(
self
,
sequence
,
**
kw
):
person
=
self
.
portal
.
person_module
[
'test_vifib_customer'
]
person
=
self
.
portal
.
person_module
[
'test_vifib_customer'
]
open_order
=
\
open_order
=
self
.
portal
.
portal_catalog
.
getResultValue
(
person
.
getDestinationDecisionRelatedValue
(
portal_type
=
"Open Sale Order"
)
default_destination_decision_uid
=
person
.
getUid
(),
validation_state
=
'validated'
,
portal_type
=
"Open Sale Order"
)
open_order_line_list
=
\
open_order_line_list
=
\
open_order
.
contentValues
(
portal_type
=
"Open Sale Order Line"
)
open_order
.
contentValues
(
portal_type
=
"Open Sale Order Line"
)
self
.
assertEquals
(
1
,
len
(
open_order_line_list
))
self
.
assertEquals
(
1
,
len
(
open_order_line_list
))
...
...
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