Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
e77effb4
Commit
e77effb4
authored
Jun 24, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configurator_standard: enable CheckQuantityConversion in test
this is supposed to work
parent
e5587493
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
...components/test.erp5.testStandardConfigurationWorkflow.py
+12
-3
No files found.
bt5/erp5_configurator_standard/TestTemplateItem/portal_components/test.erp5.testStandardConfigurationWorkflow.py
View file @
e77effb4
...
...
@@ -29,7 +29,6 @@
import
os
from
unittest
import
expectedFailure
from
DateTime
import
DateTime
from
Products.ERP5Type.tests.Sequence
import
SequenceList
from
Products.ERP5Type.tests.runUnitTest
import
tests_home
...
...
@@ -870,20 +869,28 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEqual
(
currency
.
getRelativeUrl
(),
purchase_trade_condition
.
getPriceCurrency
())
@
expectedFailure
def
stepCheckQuantityConversion
(
self
,
sequence
=
None
,
sequence_list
=
None
,
**
kw
):
"""Check that standard unit can be converted between each other,
ie 1000 grams == 1 kilogram
"""
resource
=
self
.
portal
.
product_module
.
newContent
(
portal_type
=
'Product'
,
quantity_unit_list
=
(
'mass/gram'
,
'mass/kilogram'
),)
node
=
self
.
portal
.
organisation_module
.
newContent
(
portal_type
=
'Organisation'
)
purchase_trade_condition_value_list
=
self
.
getBusinessConfigurationObjectList
(
sequence
[
'business_configuration'
],
'Purchase Trade Condition'
)
self
.
assertNotEqual
(
len
(
purchase_trade_condition_value_list
),
0
)
purchase_trade_condition_value
=
purchase_trade_condition_value_list
[
0
]
delivery
=
self
.
portal
.
purchase_packing_list_module
.
newContent
(
portal_type
=
'Purchase Packing List'
,
start_date
=
'2010-01-26'
,
price_currency
=
'currency_module/EUR'
,
destination_value
=
node
,
destination_section_value
=
node
)
destination_section_value
=
node
,
specialise_value
=
purchase_trade_condition_value
)
delivery
.
newContent
(
portal_type
=
'Purchase Packing List Line'
,
resource_value
=
resource
,
quantity
=
10
,
...
...
@@ -1380,6 +1387,8 @@ class TestStandardConfiguratorWorkflow(StandardConfigurationMixin):
stepStartConfigurationInstallation
stepTic
stepCheckInstanceIsConfigured%(country)s
stepTic
stepCheckQuantityConversion
"""
+
\
StandardConfigurationMixin
.
AFTER_CONFIGURATION_SEQUENCE
+
\
StandardConfigurationMixin
.
SECURITY_CONFIGURATION_SEQUENCE
...
...
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