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
Labels
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
8b133845
Commit
8b133845
authored
Nov 19, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend test for Sale Invoice Transactions.
parent
50b066a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingInteractionWorkflow.py
...stTemplateItem/testSlapOSAccountingInteractionWorkflow.py
+13
-5
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingInteractionWorkflow.py
View file @
8b133845
...
...
@@ -212,11 +212,7 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
self
.
portal
.
portal_skins
.
custom
.
manage_delObjects
(
script_name
)
transaction
.
commit
()
def
test_SalePackingList_calculate
(
self
):
new_id
=
self
.
generateNewId
()
newContent
=
self
.
portal
.
sale_packing_list_module
.
newContent
portal_type
=
"Sale Packing List"
def
_test_calculate
(
self
,
new_id
,
newContent
,
portal_type
):
cancel_spl
=
newContent
(
portal_type
=
portal_type
)
close_spl
=
newContent
(
portal_type
=
portal_type
)
confirm_spl
=
newContent
(
portal_type
=
portal_type
)
...
...
@@ -278,6 +274,18 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
submit_spl
.
workflow_history
[
'edit_workflow'
][
-
1
][
'comment'
],
'Visited by Delivery_calculate'
)
def
test_SalePackingList_calculate
(
self
):
new_id
=
self
.
generateNewId
()
newContent
=
self
.
portal
.
sale_packing_list_module
.
newContent
portal_type
=
"Sale Packing List"
self
.
_test_calculate
(
new_id
,
newContent
,
portal_type
)
def
test_SaleInvoiceTransaction_calculate
(
self
):
new_id
=
self
.
generateNewId
()
newContent
=
self
.
portal
.
accounting_module
.
newContent
portal_type
=
"Sale Invoice Transaction"
self
.
_test_calculate
(
new_id
,
newContent
,
portal_type
)
def
test_HostingSubscription_changePromise
(
self
):
new_id
=
self
.
generateNewId
()
subscription
=
self
.
portal
.
hosting_subscription_module
.
newContent
(
...
...
master/bt5/slapos_accounting/bt/revision
View file @
8b133845
85
\ No newline at end of file
86
\ No newline at end of file
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