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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
2720826d
Commit
2720826d
authored
3 years ago
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_project: fix test
parent
dba5b964
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
bt5/erp5_project/TestTemplateItem/portal_components/test.erp5.testProject.py
...stTemplateItem/portal_components/test.erp5.testProject.py
+3
-4
No files found.
bt5/erp5_project/TestTemplateItem/portal_components/test.erp5.testProject.py
View file @
2720826d
...
...
@@ -154,10 +154,9 @@ class TestProject(ERP5TypeTestCase):
self
.
assertEqual
(
task_line_list
[
0
],
task
.
default_task_line
)
# Script Used for Task Report Tab
# It
shows planned tasks also
.
# It
doesn't show planned tasks
.
task_line_list
=
project
.
Project_getSourceProjectRelatedTaskReportList
()
self
.
assertEqual
(
1
,
len
(
task_line_list
))
self
.
assertEqual
(
task_line_list
[
0
].
getObject
(),
task
.
default_task_line
)
self
.
assertEqual
(
0
,
len
(
task_line_list
))
task
.
confirm
()
self
.
tic
()
...
...
@@ -168,13 +167,13 @@ class TestProject(ERP5TypeTestCase):
self
.
assertEqual
(
task_line_list
[
0
],
task
.
default_task_line
)
# Script Used for Task Report Tab
# It shows planned tasks also.
task_line_list
=
project
.
Project_getSourceProjectRelatedTaskReportList
()
self
.
assertEqual
(
1
,
len
(
task_line_list
))
self
.
assertNotEquals
(
task_line_list
[
0
],
task
.
default_task_line
)
self
.
assertNotEquals
(
task_line_list
[
0
].
getCausalityRelatedValue
(),
task
.
default_task_line
)
def
testProject_updateDate
(
self
):
# Create Tasks
task_module
=
self
.
getPortalObject
().
task_module
...
...
This diff is collapsed.
Click to expand it.
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