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
92c2baee
Commit
92c2baee
authored
Dec 16, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put tests together.
parent
e8a7cefd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
...ct/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
+16
-15
No files found.
master/product/Vifib/tests/testVifibInstanceHostingRelatedDocument.py
View file @
92c2baee
...
...
@@ -22,6 +22,21 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
params
=
{
'build_before'
:
build_before
})
sequence
.
edit
(
build_before
=
build_before
)
def
stepBuildOneMoreInvoice
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
number_of_invoice
=
\
len
(
self
.
portal
.
accounting_module
.
contentValues
(
portal_type
=
"Sale Invoice Transaction"
)))
self
.
portal
.
portal_alarms
.
build_invoice_path
.
activeSense
()
def
stepBuildOneMoreInvoiceTransaction
(
self
,
sequence
,
**
kw
):
self
.
portal
.
portal_alarms
.
build_account_path
.
activeSense
()
def
stepBuildOneMorePayment
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
number_of_payment
=
\
len
(
self
.
portal
.
accounting_module
.
contentValues
(
portal_type
=
"Payment Transaction"
)))
self
.
portal
.
portal_alarms
.
build_pay_path
.
activeSense
()
def
stepCheckSalePackingList
(
self
,
sequence
,
**
kw
):
# check one more sale packing list is generated
# and only one sale packing list line is inside
...
...
@@ -73,27 +88,12 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
self
.
assertEquals
(
open_order_line
.
getSpecialise
(),
sale_packing_list
.
getSpecialise
())
def
stepBuildOneMoreInvoice
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
number_of_invoice
=
\
len
(
self
.
portal
.
accounting_module
.
contentValues
(
portal_type
=
"Sale Invoice Transaction"
)))
self
.
portal
.
portal_alarms
.
build_invoice_path
.
activeSense
()
def
stepBuildOneMoreInvoiceTransaction
(
self
,
sequence
,
**
kw
):
self
.
portal
.
portal_alarms
.
build_account_path
.
activeSense
()
def
stepCheckInvoiceAndInvoiceTransaction
(
self
,
sequence
,
**
kw
):
self
.
assertEquals
(
len
(
self
.
portal
.
accounting_module
.
contentValues
(
portal_type
=
"Sale Invoice Transaction"
)),
sequence
.
get
(
'number_of_invoice'
)
+
1
)
def
stepBuildOneMorePayment
(
self
,
sequence
,
**
kw
):
sequence
.
edit
(
number_of_payment
=
\
len
(
self
.
portal
.
accounting_module
.
contentValues
(
portal_type
=
"Payment Transaction"
)))
self
.
portal
.
portal_alarms
.
build_pay_path
.
activeSense
()
def
stepCheckPayment
(
self
,
sequence
,
**
kw
):
self
.
assertEquals
(
len
(
self
.
portal
.
accounting_module
.
contentValues
(
...
...
@@ -117,6 +117,7 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
Logout
LoginDefaultUser
CheckOne
CheckSalePackingList
CheckInvoiceAndInvoiceTransaction
CheckPayment
...
...
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