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
104
Merge Requests
104
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
698c15c0
Commit
698c15c0
authored
Dec 23, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use only one way to build documents.
parent
fa310799
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
...ct/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
+7
-11
No files found.
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
View file @
698c15c0
...
@@ -7,27 +7,23 @@ from DateTime.DateTime import DateTime
...
@@ -7,27 +7,23 @@ from DateTime.DateTime import DateTime
class
TestVifibInstanceHostingRelatedDocument
(
TestVifibSlapWebServiceMixin
):
class
TestVifibInstanceHostingRelatedDocument
(
TestVifibSlapWebServiceMixin
):
def
step
BuildOneMoreSalePackingList
(
self
,
sequence
,
**
kw
):
def
step
TriggerNextBuild
(
self
,
sequence
,
**
kw
):
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
)
self
.
portal
.
portal_alarms
.
build_deliver_path
.
activeSense
()
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
activeSense
()
else
:
else
:
build_before
=
addToDate
(
build_before
,
month
=
1
)
build_before
=
addToDate
(
build_before
,
month
=
1
)
self
.
portal
.
portal_alarms
.
build_deliver_path
.
activeSense
(
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
activeSense
(
params
=
{
'build_before'
:
build_before
})
params
=
{
'build_before'
:
build_before
})
sequence
.
edit
(
build_before
=
build_before
)
def
stepTriggerNextBuild
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
sequence
.
edit
(
number_of_sale_packing_list
=
sequence
.
get
(
number_of_sale_packing_list
=
sequence
.
get
(
'number_of_sale_packing_list'
,
0
)
+
1
,
'number_of_sale_packing_list'
,
0
)
+
1
,
number_of_invoice
=
sequence
.
get
(
'number_of_invoice'
,
0
)
+
1
,
invoice_amount
=
sequence
.
get
(
'invoice_amount'
,
0
)
+
1
,
number_of_payment
=
sequence
.
get
(
'number_of_payment'
,
0
)
+
1
payment_amount
=
sequence
.
get
(
'payment_amount'
,
0
)
+
1
,
build_before
=
build_before
)
)
self
.
portal
.
portal_alarms
.
vifib_trigger_build
.
activeSense
()
def
stepCheckOneMoreDocumentList
(
self
,
sequence
,
**
kw
):
def
stepCheckOneMoreDocumentList
(
self
,
sequence
,
**
kw
):
hosting_subscription
=
self
.
portal
.
portal_catalog
\
hosting_subscription
=
self
.
portal
.
portal_catalog
\
...
@@ -43,7 +39,7 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
...
@@ -43,7 +39,7 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
sale_packing_list
=
sale_packing_list_list
[
0
].
getObject
()
sale_packing_list
=
sale_packing_list_list
[
0
].
getObject
()
sale_invoice_transaction_list
=
sale_packing_list
\
sale_invoice_transaction_list
=
sale_packing_list
\
.
getCausalityRelatedValueList
(
portal_type
=
'Sale Invoice Transaction'
)
.
getCausalityRelatedValueList
(
portal_type
=
'Sale Invoice Transaction'
)
self
.
assertEqual
(
1
,
len
(
sale_invoice_transaction_list
))
self
.
assertEqual
(
sequence
[
'invoice_amount'
]
,
len
(
sale_invoice_transaction_list
))
sale_invoice_transaction
=
sale_invoice_transaction_list
[
0
]
sale_invoice_transaction
=
sale_invoice_transaction_list
[
0
]
payment_transaction_list
=
sale_invoice_transaction
\
payment_transaction_list
=
sale_invoice_transaction
\
...
...
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