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
Cédric Le Ninivin
slapos.core
Commits
0c284eb2
Commit
0c284eb2
authored
Feb 08, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move steps to more generic module.
parent
23619283
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
...ct/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
+0
-16
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+16
-0
No files found.
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
View file @
0c284eb2
...
...
@@ -589,22 +589,6 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
uid
=
sequence
[
'invoice_uid'
])
invoice
.
setStartDate
(
getClosestDate
(
target_date
=
DateTime
())
-
1
)
def
stepTriggerConfirmPlannedInvoiceAlarm
(
self
,
sequence
,
**
kw
):
sm
=
getSecurityManager
()
self
.
login
()
try
:
self
.
portal
.
portal_alarms
.
confirm_planned_sale_invoice_transaction
.
activeSense
()
finally
:
setSecurityManager
(
sm
)
def
stepTriggerStopConfirmedInvoiceAlarm
(
self
,
sequence
,
**
kw
):
sm
=
getSecurityManager
()
self
.
login
()
try
:
self
.
portal
.
portal_alarms
.
stop_confirmed_sale_invoice_transaction
.
activeSense
()
finally
:
setSecurityManager
(
sm
)
def
test_OpenOrder_sale_packing_list
(
self
):
"""
Check that sale_packing_list is generated properly from simulation
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
0c284eb2
...
...
@@ -177,6 +177,22 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
########################################
# Steps -- scenarios
########################################
def
stepTriggerConfirmPlannedInvoiceAlarm
(
self
,
sequence
,
**
kw
):
sm
=
getSecurityManager
()
self
.
login
()
try
:
self
.
portal
.
portal_alarms
.
confirm_planned_sale_invoice_transaction
.
activeSense
()
finally
:
setSecurityManager
(
sm
)
def
stepTriggerStopConfirmedInvoiceAlarm
(
self
,
sequence
,
**
kw
):
sm
=
getSecurityManager
()
self
.
login
()
try
:
self
.
portal
.
portal_alarms
.
stop_confirmed_sale_invoice_transaction
.
activeSense
()
finally
:
setSecurityManager
(
sm
)
def
stepCheckComputerTradeConditionDestinationSectionTestVifibCustomer
(
self
,
sequence
,
**
kw
):
computer
=
self
.
portal
.
portal_catalog
.
getResultValue
(
...
...
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