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
141
Merge Requests
141
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
fef01b51
Commit
fef01b51
authored
Oct 22, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Research Item Report: various fixes
parent
08cea86c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bt5/erp5_research_item/TestTemplateItem/portal_components/test.erp5.testResearchItemSummaryReport.py
...tal_components/test.erp5.testResearchItemSummaryReport.py
+5
-5
No files found.
bt5/erp5_research_item/TestTemplateItem/portal_components/test.erp5.testResearchItemSummaryReport.py
View file @
fef01b51
...
@@ -108,8 +108,8 @@ class TestResearchItemSummaryReport(TestTaskReportingMixin):
...
@@ -108,8 +108,8 @@ class TestResearchItemSummaryReport(TestTaskReportingMixin):
at_date
=
DateTime
(
"2014/01/01"
)
at_date
=
DateTime
(
"2014/01/01"
)
result
=
callReport
()
result
=
callReport
()
# Initially we should have only one line for an empty total
# Initially we should have only one line for an empty total
self
.
assertEqual
(([
"Worker"
,
"Total"
],
self
.
assertEqual
(([
"Worker"
,
"
Undefined"
,
"
Total"
],
[[
"Total"
,
None
]]),
[[
"Total"
,
None
,
None
]]),
getDataResult
(
result
))
getDataResult
(
result
))
# Then create one task with no item, see if we it is displayed in the report
# Then create one task with no item, see if we it is displayed in the report
...
@@ -119,7 +119,7 @@ class TestResearchItemSummaryReport(TestTaskReportingMixin):
...
@@ -119,7 +119,7 @@ class TestResearchItemSummaryReport(TestTaskReportingMixin):
source
=
'person_module/Person_1'
,
source
=
'person_module/Person_1'
,
)
)
result
=
callReport
()
result
=
callReport
()
self
.
assertEqual
(([
"Worker"
,
"
u
ndefined"
,
"Total"
],
self
.
assertEqual
(([
"Worker"
,
"
U
ndefined"
,
"Total"
],
[[
"Person_1"
,
3
,
3
],
[[
"Person_1"
,
3
,
3
],
[
"Total"
,
3
,
3
]]),
[
"Total"
,
3
,
3
]]),
getDataResult
(
result
))
getDataResult
(
result
))
...
@@ -132,7 +132,7 @@ class TestResearchItemSummaryReport(TestTaskReportingMixin):
...
@@ -132,7 +132,7 @@ class TestResearchItemSummaryReport(TestTaskReportingMixin):
line_aggregate_relative_url
=
'research_item_module/Item_1'
,
line_aggregate_relative_url
=
'research_item_module/Item_1'
,
)
)
result
=
callReport
()
result
=
callReport
()
self
.
assertEqual
(([
"Worker"
,
"
u
ndefined"
,
"Item_1"
,
"Total"
],
self
.
assertEqual
(([
"Worker"
,
"
U
ndefined"
,
"Item_1"
,
"Total"
],
[[
"Person_1"
,
3
,
None
,
3
],
[[
"Person_1"
,
3
,
None
,
3
],
[
"Person_2"
,
None
,
5.2
,
5.2
],
[
"Person_2"
,
None
,
5.2
,
5.2
],
[
"Total"
,
3
,
5.2
,
8.2
]]),
[
"Total"
,
3
,
5.2
,
8.2
]]),
...
@@ -158,7 +158,7 @@ class TestResearchItemSummaryReport(TestTaskReportingMixin):
...
@@ -158,7 +158,7 @@ class TestResearchItemSummaryReport(TestTaskReportingMixin):
line_aggregate_relative_url
=
'research_item_module/Item_2'
,
line_aggregate_relative_url
=
'research_item_module/Item_2'
,
)
)
result
=
callReport
()
result
=
callReport
()
self
.
assertEqual
(([
"Worker"
,
"
u
ndefined"
,
"Item_1"
,
"Item_2"
,
"Total"
],
self
.
assertEqual
(([
"Worker"
,
"
U
ndefined"
,
"Item_1"
,
"Item_2"
,
"Total"
],
[[
"Person_1"
,
3
,
None
,
1.7
,
4.7
],
[[
"Person_1"
,
3
,
None
,
1.7
,
4.7
],
[
"Person_2"
,
None
,
7.6
,
0.9
,
8.5
],
[
"Person_2"
,
None
,
7.6
,
0.9
,
8.5
],
[
"Total"
,
3
,
7.6
,
2.6
,
13.2
]]),
[
"Total"
,
3
,
7.6
,
2.6
,
13.2
]]),
...
...
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