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
Carlos Ramos Carreño
slapos.core
Commits
77988293
Commit
77988293
authored
Mar 08, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cover more interesting case.
Remove open order line and prove that simulation are correct.
parent
77143759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
+16
-15
No files found.
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
View file @
77988293
...
...
@@ -166,17 +166,12 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
precision
=
'month'
,
before
=
1
),
month
=
3
)})
def
stepCheckThreeTopLevelSimulationMovement
(
self
,
sequence
,
**
kw
):
person
=
self
.
portal
.
person_module
[
'test_vifib_customer'
]
open_order
=
self
.
portal
.
portal_catalog
.
getResultValue
(
default_destination_decision_uid
=
person
.
getUid
(),
validation_state
=
'validated'
,
portal_type
=
"Open Sale Order"
)
open_order_line_list
=
\
open_order
.
contentValues
(
portal_type
=
"Open Sale Order Line"
)
self
.
assertEquals
(
1
,
len
(
open_order_line_list
))
open_order_line
=
open_order_line_list
[
0
]
hosting_subscription
=
\
open_order_line
.
getAggregateValue
(
portal_type
=
"Hosting Subscription"
)
hosting_subscription
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'hosting_subscription_uid'
])
self
.
assertEqual
(
2
,
self
.
portal
.
portal_catalog
.
countResults
(
default_aggregate_uid
=
sequence
[
'hosting_subscription_uid'
],
portal_type
=
'Open Sale Order Line'
)[
0
][
0
]
)
applied_rule
=
\
hosting_subscription
.
getCausalityRelatedValue
(
portal_type
=
"Applied Rule"
)
self
.
assertEquals
(
...
...
@@ -212,22 +207,28 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
Logout
LoginTestVifibCustomer
RequestSoftwareInstance
Start
RequestSoftwareInstance
Destroy
Tic
Logout
LoginDefaultUser
CheckComputerPartitionInstance
Hosting
SalePackingListConfirmed
CheckComputerPartitionInstance
Cleanup
SalePackingListConfirmed
Logout
SlapLoginCurrentComputer
SoftwareInstance
Start
ed
SoftwareInstance
Destroy
ed
Tic
SlapLogout
LoginDefaultUser
CheckComputerPartitionInstanceHostingSalePackingListStarted
CheckComputerPartitionInstanceCleanupSalePackingListDelivered
CheckComputerPartitionIsFree
CheckOpenOrderLineRemoved
Logout
LoginERP5TypeTestCase
Tic # in order to call update simulation alarm of open order
Tic
CheckThreeTopLevelSimulationMovement
CheckSiteConsistency
Logout
"""
...
...
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