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
Jérome Perrin
slapos.core
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
Hide 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