Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
Levin Zimmermann
wendelin
Commits
51ff4078
Commit
51ff4078
authored
Jul 19, 2022
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin: Fix test_16_createDataAnalysisFromDataTransformationWithoutResolution
parent
c794942b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
...tTemplateItem/portal_components/test.erp5.testWendelin.py
+23
-2
No files found.
bt5/erp5_wendelin/TestTemplateItem/portal_components/test.erp5.testWendelin.py
View file @
51ff4078
...
@@ -665,12 +665,22 @@ result = [x for x in data_bucket_stream.getBucketIndexKeySequenceByIndex()]
...
@@ -665,12 +665,22 @@ result = [x for x in data_bucket_stream.getBucketIndexKeySequenceByIndex()]
self
.
addCleanup
(
self
.
_removeDocument
,
specialise_data_transformation
)
self
.
addCleanup
(
self
.
_removeDocument
,
specialise_data_transformation
)
specialise_data_transformation
.
validate
()
specialise_data_transformation
.
validate
()
specialise_data_supply
=
portal
.
data_supply_module
.
newContent
(
portal_type
=
"Data Supply"
,
title
=
"%s Specialise Data Supply"
%
title_prefix
,
)
self
.
addCleanup
(
self
.
_removeDocument
,
specialise_data_supply
)
specialise_data_supply
.
validate
()
initial_data_analysis
=
portal
.
data_analysis_module
.
newContent
(
initial_data_analysis
=
portal
.
data_analysis_module
.
newContent
(
portal_type
=
"Data Analysis"
,
portal_type
=
"Data Analysis"
,
title
=
"%s Import Raw Data"
%
title_prefix
,
title
=
"%s Import Raw Data"
%
title_prefix
,
reference
=
"wendelin.test.16.initial.data.analysis"
,
reference
=
"wendelin.test.16.initial.data.analysis"
,
resource
=
resource
.
getRelativeUrl
(),
resource
=
resource
.
getRelativeUrl
(),
specialise_value_list
=
[
specialise_data_transformation
.
getRelativeUrl
()],
specialise_value_list
=
[
specialise_data_supply
.
getRelativeUrl
(),
specialise_data_transformation
.
getRelativeUrl
()
],
)
)
self
.
addCleanup
(
self
.
_removeDocument
,
initial_data_analysis
)
self
.
addCleanup
(
self
.
_removeDocument
,
initial_data_analysis
)
...
@@ -691,6 +701,8 @@ result = [x for x in data_bucket_stream.getBucketIndexKeySequenceByIndex()]
...
@@ -691,6 +701,8 @@ result = [x for x in data_bucket_stream.getBucketIndexKeySequenceByIndex()]
resource
=
data_operation
.
getRelativeUrl
(),
resource
=
data_operation
.
getRelativeUrl
(),
quantity
=
1
,
quantity
=
1
,
)
)
self
.
commit
()
self
.
tic
()
data_transformation
=
portal
.
data_transformation_module
.
newContent
(
data_transformation
=
portal
.
data_transformation_module
.
newContent
(
portal_type
=
"Data Transformation"
,
portal_type
=
"Data Transformation"
,
...
@@ -700,6 +712,14 @@ result = [x for x in data_bucket_stream.getBucketIndexKeySequenceByIndex()]
...
@@ -700,6 +712,14 @@ result = [x for x in data_bucket_stream.getBucketIndexKeySequenceByIndex()]
self
.
addCleanup
(
self
.
_removeDocument
,
data_transformation
)
self
.
addCleanup
(
self
.
_removeDocument
,
data_transformation
)
data_transformation
.
validate
()
data_transformation
.
validate
()
data_transformation
.
newContent
(
portal_type
=
"Data Transformation Operation Line"
,
title
=
"Convert A to B"
,
reference
=
"data_operation"
,
resource
=
data_operation
.
getRelativeUrl
(),
quantity
=
1
,
)
def
getDataAnalysis
():
def
getDataAnalysis
():
return
portal
.
portal_catalog
.
getResultValue
(
return
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
"Data Analysis"
,
portal_type
=
"Data Analysis"
,
...
@@ -709,9 +729,10 @@ result = [x for x in data_bucket_stream.getBucketIndexKeySequenceByIndex()]
...
@@ -709,9 +729,10 @@ result = [x for x in data_bucket_stream.getBucketIndexKeySequenceByIndex()]
self
.
assertEqual
(
getDataAnalysis
(),
None
)
self
.
assertEqual
(
getDataAnalysis
(),
None
)
self
.
tic
()
self
.
tic
()
for
_
in
range
(
2
):
for
_
in
range
(
1
):
self
.
portal
.
portal_alarms
.
wendelin_handle_analysis
.
activeSense
()
self
.
portal
.
portal_alarms
.
wendelin_handle_analysis
.
activeSense
()
self
.
tic
()
self
.
tic
()
data_analysis
=
getDataAnalysis
()
data_analysis
=
getDataAnalysis
()
self
.
assertNotEqual
(
data_analysis
,
None
)
self
.
assertNotEqual
(
data_analysis
,
None
)
self
.
addCleanup
(
self
.
_removeDocument
,
data_analysis
)
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