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
Łukasz Nowak
slapos.core
Commits
5b83ed49
Commit
5b83ed49
authored
Feb 24, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hardcode some properties for manually created SPL
parent
862096d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+13
-2
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
5b83ed49
...
@@ -2715,7 +2715,16 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -2715,7 +2715,16 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
module
=
self
.
portal
.
getDefaultModule
(
module
=
self
.
portal
.
getDefaultModule
(
portal_type
=
self
.
sale_packing_list_portal_type
)
portal_type
=
self
.
sale_packing_list_portal_type
)
order
=
module
.
newContent
(
order
=
module
.
newContent
(
portal_type
=
self
.
sale_packing_list_portal_type
)
portal_type
=
self
.
sale_packing_list_portal_type
,
specialise
=
'sale_trade_condition_module/vifib_trade_condition'
,
source
=
'organisation_module/vifib_internet'
,
source_section
=
'organisation_module/vifib_internet'
,
# XXX Hardcoded values
destination
=
'person_module/test_vifib_customer'
,
destination_section
=
'person_module/test_vifib_customer'
,
price_currency
=
'currency_module/EUR'
,
start_date
=
DateTime
(),
)
sequence
.
edit
(
sale_packing_list_uid
=
order
.
getUid
())
sequence
.
edit
(
sale_packing_list_uid
=
order
.
getUid
())
def
stepCreateSalePackingListLine
(
self
,
sequence
,
**
kw
):
def
stepCreateSalePackingListLine
(
self
,
sequence
,
**
kw
):
...
@@ -2725,7 +2734,9 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -2725,7 +2734,9 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
order
=
self
.
portal
.
portal_catalog
.
getResultValue
(
order
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
"sale_packing_list_uid"
])
uid
=
sequence
[
"sale_packing_list_uid"
])
line
=
order
.
newContent
(
line
=
order
.
newContent
(
portal_type
=
self
.
sale_packing_list_line_portal_type
)
portal_type
=
self
.
sale_packing_list_line_portal_type
,
quantity
=
1
,
)
sequence
.
edit
(
sale_packing_list_line_uid
=
line
.
getUid
())
sequence
.
edit
(
sale_packing_list_line_uid
=
line
.
getUid
())
def
stepSetSalePackingListLineSetupResource
(
self
,
sequence
,
**
kw
):
def
stepSetSalePackingListLineSetupResource
(
self
,
sequence
,
**
kw
):
...
...
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