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
Gabriel Monnerat
slapos.core
Commits
f4b80931
Commit
f4b80931
authored
Dec 16, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow builder change.
parent
7385e47a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
20 deletions
+10
-20
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
...ct/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
+10
-20
No files found.
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
View file @
f4b80931
...
@@ -8,10 +8,8 @@ from DateTime.DateTime import DateTime
...
@@ -8,10 +8,8 @@ from DateTime.DateTime import DateTime
class
TestVifibInstanceHostingRelatedDocument
(
TestVifibSlapWebServiceMixin
):
class
TestVifibInstanceHostingRelatedDocument
(
TestVifibSlapWebServiceMixin
):
def
stepBuildOneMoreSalePackingList
(
self
,
sequence
,
**
kw
):
def
stepBuildOneMoreSalePackingList
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
number_of_sale_packing_list
=
sequence
.
get
(
'number_of_sale_packing_list'
,
0
)
+
1
)
build_before
=
sequence
.
get
(
'build_before'
)
build_before
=
sequence
.
get
(
'build_before'
)
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
activeSense
()
if
build_before
is
None
:
if
build_before
is
None
:
build_before
=
getClosestDate
(
build_before
=
getClosestDate
(
target_date
=
DateTime
(),
precision
=
'month'
,
before
=
0
)
target_date
=
DateTime
(),
precision
=
'month'
,
before
=
0
)
...
@@ -22,16 +20,14 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
...
@@ -22,16 +20,14 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
params
=
{
'build_before'
:
build_before
})
params
=
{
'build_before'
:
build_before
})
sequence
.
edit
(
build_before
=
build_before
)
sequence
.
edit
(
build_before
=
build_before
)
def
stepBuildOneMoreInvoice
(
self
,
sequence
,
**
kw
):
def
stepTriggerNextBuild
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
number_of_invoice
=
sequence
.
get
(
'number_of_invoice'
,
0
)
+
1
)
sequence
.
edit
(
self
.
portal
.
portal_alarms
.
build_invoice_path
.
activeSense
()
number_of_sale_packing_list
=
sequence
.
get
(
'number_of_sale_packing_list'
,
0
)
+
1
,
def
stepBuildOneMoreInvoiceTransaction
(
self
,
sequence
,
**
kw
):
number_of_invoice
=
sequence
.
get
(
'number_of_invoice'
,
0
)
+
1
,
self
.
portal
.
portal_alarms
.
build_account_path
.
activeSense
()
number_of_payment
=
sequence
.
get
(
'number_of_payment'
,
0
)
+
1
)
def
stepBuildOneMorePayment
(
self
,
sequence
,
**
kw
):
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
activeSense
()
sequence
.
edit
(
number_of_payment
=
sequence
.
get
(
'number_of_payment'
,
0
)
+
1
)
self
.
portal
.
portal_alarms
.
build_pay_path
.
activeSense
()
def
stepCheckOneMoreDocumentList
(
self
,
sequence
,
**
kw
):
def
stepCheckOneMoreDocumentList
(
self
,
sequence
,
**
kw
):
hosting_subscription
=
self
.
portal
.
portal_catalog
\
hosting_subscription
=
self
.
portal
.
portal_catalog
\
...
@@ -130,13 +126,7 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
...
@@ -130,13 +126,7 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
"""
"""
check_one_month
=
"""
check_one_month
=
"""
LoginDefaultUser
LoginDefaultUser
BuildOneMoreSalePackingList
TriggerNextBuild
Tic
BuildOneMoreInvoice
Tic
BuildOneMoreInvoiceTransaction
Tic
BuildOneMorePayment
Tic
Tic
Logout
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